Jump to content
  • Advertisement
Sign in to follow this  
proanim

dedicated server vs lan server

This topic is 2111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I do know that dedicated server is the server that will do all the calculations and communications between clients, so they act as terminals. And I know that in LAN games one person can host the game and also play it at the same time.

 

From what I understand regular PC can be used as dedicated server (like in Quake 3 Arena and such), but there are also server machines that can be bought or rented; do they require different programming?

 

What is the core difference in programming LAN server code?

What happens if host leaves the game? Is the game terminated or the new host is picked instantly?

What is the benefit of having dedicated server?

Share this post


Link to post
Share on other sites
Advertisement

Most of these depend heavily on the game.

 

"Server" is a fairly vague generality for a computer program that accepts a connection and does something with it. 

 

You are correct that a server machine can be just a PC in a closet. It can also be a home PC. It can also be a mobile phone or tablet, or a tiny FPGA board. The server program can be anything from a file sharing system as simple as TFTP or as complex as BitTorrent, it can communicate virtual desktops or game protocols or web pages or a nuclear reactor's interfaces.  A server is a very generic term.

 

 

Often the publicly visible servers are lobby services that introduce players to each other. They connect players to other players, then stick around to record results and game summaries.

 

Some games have the game logic run on the company servers, which can expensive to maintain; MMOs typically do this to help reduce cheating. Other games run the simulation on one or more of the player's machines. When a client doubles as the in-game host, which one does the hosting also varies by games.

 

When the host is dropped, it also depends on the game implementation. Some games have every game client running their own simulation where every player broadcasts their data in an all-to-all fashion, and if the host drops a new host can be selected automatically by the remaining players based on connection properties. Other games will immediately terminate the play session.

 

Having a 'dedicated server' can mean different things depending on who you are talking to.  It could mean the a virtual machine has a dedicated IP address, or that an entire physical machine is sitting in a room specifically for your use, or other things entirely. The benefits depend on what they mean by the term and also on the nature of the game.

Share this post


Link to post
Share on other sites

A rented server machine for a game that supports "home PC" servers typically runs the same copy of the game as a "dedicated server" would run on a home PC.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!