Saturday, February 22, 2014

Multiplayer game: How to search game server?

Hi!


I'm currently writing a multi player game. Communication is done via StreamSockets. Everything works as expected.


However one thing is not perfect. Starting a multi player game works as following:


1. The first player starts a multi player game


2. The second player connects to the started multi player game, however he needs the host name of the first player


My question:


Is there a way, to automatically detect the host name of the first player? Maybe using a specific broadcast method?


Thanks!


Jürgen



No comments:

Post a Comment