Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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.