Search Unity

Master Server isnt initializing.

Discussion in 'Multiplayer' started by piluve, Apr 3, 2014.

  1. piluve

    piluve

    Joined:
    Mar 17, 2012
    Posts:
    158
    Hey guys.

    I am working on a basic multiplayer setup, here the code:

    Code (csharp):
    1.  
    2. void startServer()
    3.     {
    4.         Network.InitializeServer(32, 25090, !Network.HavePublicAddress());
    5.         MasterServer.RegisterHost("MOBA 1.0", "Normal", "EUw");
    6.  
    7.     }
    8.  
    9.  
    10.     void OnServerInitialized()
    11.     {
    12.         Debug.Log("The server is working");
    13.     }
    14.     void OnMasterServerEvent(MasterServerEvent mse)
    15.     {
    16.         if (mse == MasterServerEvent.RegistrationSucceeded)
    17.             Debug.Log("Server registered");
    18.     }
    19.  
    20.  
    This (Debug.Log("The server is working");) works but , the master server dont work,it reports me that error:

    Failed to connect to master server at 67.225.180.24:23466

    Thx!
     
  2. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    I have the exact same error past few days, cant debug my code.

    Failed to connect to master server at 67.225.180.24:23466

    anybody knows if the unity master server is down because it used to work.

    I'm new to unity, does anybody knows how to get around this, can I have multi-player and RPC calls without using master server?

    How to do it, can you show code in C#?

    Thanks