Remove All Ads from XDA

Multiplayer capabilities

2,087 posts
Thanks Meter: 762
By sensboston, Recognized Developer on 30th April 2012, 05:10 PM
Post Reply Email Thread

I have a question to developers with practical experience: what is the easiest way to add network multiplayer capabilities to the turn-based, peer to peer game. Of course I'm looking for free or cheap service; or for open source server solution what I can host on my own (paid but basic) Linux/ASP hosting.

P.S. I know how to do it yourself but trying to save my time.
1st May 2012, 09:56 AM |#2  
Inactive Recognized Developer
Flag Seattle
Thanks Meter: 2,921
Well, if you want true peer-to-peer, you wouldn't be using any kind of hosting service at all. However, since most mobile operators firewall incoming connections to phones, and since the official APIs are very short on any kind of proper server socket (you can send or receive UDP broadcast, I think?) that would limit you to a mildly crippled WiFi-only network.

Even if you just want to use a central server for matchmaking and scorekeeping and such, you'll run into the same problems as above - you could find people across a larger range than WiFi, but you couldn't actually play with them. If having everybody connected to the same WiFi network is an unacceptable limitation, I'm not sure peer-to-peer is practical.

For something robust enough to handle actual multi-player gaming, I'd suggest going with a "cloud" provider (Azure, AWS, Rackspace, whatever). That doesn't cover the actual software, of course, but hopefully somebody else knows of a good solution there.
1st May 2012, 03:16 PM |#3  
sensboston's Avatar
OP Recognized Developer
Flag Boston, MA
Thanks Meter: 762
Donate to Me
GoodDayToDie, as for custom implementation (if I don't find any "ready to go" solution) I thought about very simple ASP .NET service with send and receive connectors (that solution works pretty fast, easy and stable with WP7, already tested) hosted on $10-20 ASP hosting (there are bunch of cheap ASP .NET hosting in the internet). Azure is too expensive and too big for that purpose (although I received some months/may be year for free because of my BizSpark account - if you have your own company and fit the BizSpark requirements, I recommend you to open BizSpark too)

As for "peer-to-peer" - sorry, it was incorrect sentence. I just mean that turn-by-turn game will have only two players per session/game Of course because of IP limitations I should use client-server architecture. But I'm trying to find any existing free/cheap solution (I believe Android and iPhone multiplayer games also needs that kind of service) to save my time for coding/debugging server side.
11th May 2012, 06:43 AM |#4  
the0ne's Avatar
Senior Member
Flag Melbourne
Thanks Meter: 52
would this help :
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes