How does iPhone networking work?

I played around with the unity iphone networking tutorial earlier this year but one thing I didn’t understand was how it would work in the real world.

If I were to create a multiplayer iPhone game in Unity, does that mean players on an iPhone or iPod Touch (via WiFi) can play across the world with each other via networkIDs? Or would they just be able to play locally using WiFi?

Any good examples of multiplayer unity iphone games out there?

Unity’s networking will let users play with each other across the world over an internet connection. In real world cases, you’ll need to use a matching server and nat punchthrough to have the players discover each other.

Just keep in mind that internet connection really means wifi. Through 3G its only reasonably possible if you host servers

I see. Is this “matching server” you speak of the same thing as the master server/facilitator? If so, I just opened up a HUGE can of worms. :shock:

I think I will just tackle local wifi multiplayer first.

Thanks! :slight_smile:

local wifi multiplayer without access point is not possible with unity networking. and if you use the wifi access point you have to use UDP broadcasting or alike to find availabler games as the discovery normally is master server bound

Checkout prime31s plugins for GameCenter and GameKit support. Useful stuff

/Chris