P2P or Client/Server?

Nibbie
Posts: 2
Joined: 2009.05
Post: #1
I'm developing a game and I'm wondering which is the best way to go, P2P or client/server.

Since my game will be a two-player game (one on one) I'm wondering if a dedicated game server is really necessary. Can't I use P2P networking instead with one side being both client AND server (host)? communicating directly over the internet via TCP/IP?

Of course I'd have a dedicated web server to just handle the social side: finding games and matching players, registering top players, etc.
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #2
One thing to consider is that if this is a competitive game and you do it P2P, there's nothing you can do to prevent cheating. With an authoritative server, you can make sure neither player is changing their game state illegally.
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2009.08
Post: #3
Wouldn't P2P be a cheaper solution aswell? Or would the players have the ability to host servers themselves? Otherwise you would have to come up with a dedicated server, advantage here being total control and if you get it from the right place you should expect good speeds, that would be important if your game requires a lot of bandwidth or needs to synchronise movement of the the players in the game.

But a 2 player game aka one ob one won't require more than say 100kbit/s? then a dedicated gameserver would be overkill. But you could host over 20 of your gameservers on one dedicated machine depending on the specs.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  CrystalEngine server solution for any game project Aldex 0 3,437 Sep 1, 2011 01:45 AM
Last Post: Aldex
  Connect to Server from Iphone BugSniper 6 9,423 Jul 15, 2009 04:57 PM
Last Post: BugSniper
  Client side prediction in a networked top-down game AndyKorth 0 3,943 Jun 30, 2009 08:35 AM
Last Post: AndyKorth
  Server architecture advice needed :) wyrmmage 2 4,659 Jan 25, 2007 10:57 AM
Last Post: wyrmmage
  Server/database interaction in C++ using sockets wyrmmage 2 5,234 Jan 20, 2007 02:17 PM
Last Post: wyrmmage