Search Unity

Try reconnect to Master Sever

Discussion in 'Multiplayer' started by Merrik44, Feb 9, 2014.

  1. Merrik44

    Merrik44

    Joined:
    May 8, 2013
    Posts:
    38
    Hi

    I have found that if the connection attempt to the master server fails, there is no way to get unity to try again.

    A test case would be:
    • Unplug the network cable
    • Start the game.
    • Call MasterServer.RequestHostList(GameType); (At this point I assume unity attempts the connection for the first time)
    • OnFailedToConnectToMasterServer() is then called (since we are not connected to the network)
    at this point I'd like to re attempt connection
    • Plug the network cable in
    • Call MasterServer.RequestHostList(GameType)
    • Nothing happens... No host list is recieved and no error is thrown.
    Does anyone have any insight into how to make unity reattempt the connection?
    This is obviously important for creating a robust networking experience.

    Thanks!
     
  2. CodeArtist_MX

    CodeArtist_MX

    Joined:
    Apr 11, 2013
    Posts:
    4
    Hello! Did you find any solution to this? I cant seem to find any clear information about this.
    Thanks in advance!
     
  3. DLGScript

    DLGScript

    Joined:
    Jul 15, 2012
    Posts:
    272
    As I read, Unitys Master server was shut down for now :(