Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

1337Skittles

macrumors newbie
Original poster
May 11, 2010
3
0
So I'm a complete noob to the whole programming scene. So I was day dreaming and came up with a nifty game. however the parts that would make it fun are outside of what I would like to maintain. My goal is to make a maintenance free multiplayer game that does not require a web server to connect users together. Looking at my carefully drawn diagram here, I want to know if its possible to connect someone in Nebraska to someone in Kansas inside of a game without using a server. Reason being is because I do not have the time or resources to maintain a dedicated server.

Untitled.jpg


let the hating commence
 
GameKit. You'll need access to the 4.0 beta but it's been enhanced to do what you want. I can't really say any more than that.
 
sweet thanks, I just wanted to know if it was possible before I dove into things
 
Is the little red think on the server a light, a switch, or a combo switch with light? :p

Of course what you are asking is possible. The trick is IP address discovery. You could have each user e-mail or pm their address to the other one and then have them enter it into your app. That is primitive. You could suggest they use a service such and DYNDNS, have your app update their own IP and them have them enter and save the other persons URL name into your app. This way the app could find opponents.

As robbieduncan has mentioned as I've typed the above, Apple is coming out with a service in OS 4.0. This should make life easier.
 
is it possible to just have the app connect to another random user rather than have two users exchange their IP addresses
 
is it possible to just have the app connect to another random user rather than have two users exchange their IP addresses

Sure, but it would statistically be unlikely to happen. Think about what you are asking; out of hundreds of millions of computers on the internet at any one time, you want your app to find copies of it self without any help.

You require a service, or manual intervention to do what you want. Internet communication is based on rules and servers, not magic. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.