Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Failed to connect to master server at...

Discussion in 'Multiplayer' started by thylaxene, Feb 4, 2008.

  1. thylaxene

    thylaxene

    Joined:
    Oct 10, 2005
    Posts:
    716
    Hi,

    If we are having internet issues, like when our router has gone down I will get this error thrown up by the Editor: Failed to connect to master server at 83.221.146.11:23456.

    I was wondering if there is anyway I can test for that and present the end user with feedback/options if it happens in game?

    Cheers.
     
  2. larus

    larus

    Unity Technologies

    Joined:
    Oct 12, 2007
    Posts:
    277
    If you try to register a host or retrieve a host list from the master server, you get a OnFailedToConnectToMasterServer callback in case it has failed to connect.
     
  3. thylaxene

    thylaxene

    Joined:
    Oct 10, 2005
    Posts:
    716
    thanks larus for re-pointing that out to me... I already had that function in my code... its error message was just going into the wrong variable! I hate it when I forget what I implemented in my own code!

    Cheers.