Search Unity

About Unet Match Maker servers ("localhost" and "Staging")

Discussion in 'UNet' started by www_3dart_es, Jan 7, 2017.

  1. www_3dart_es

    www_3dart_es

    Joined:
    May 24, 2013
    Posts:
    219
    Hello, I found this code for the NetworkManagerHUD to can make my own HUD, and I saw in the Match Maker section 3 values:
    https://bitbucket.org/Unity-Technol...gerHUD.cs?at=5.4&fileviewer=file-view-default

    Code (CSharp):
    1. if (GUI.Button(new Rect(xpos, ypos, 200, 20), "Change MM server"))
    2.                     {
    3.                         m_ShowServer = !m_ShowServer;
    4.                     }
    5.                     if (m_ShowServer)
    6.                     {
    7.                         ypos += spacing;
    8.                         if (GUI.Button(new Rect(xpos, ypos, 100, 20), "Local"))
    9.                         {
    10.                             manager.SetMatchHost("localhost", 1337, false);
    11.                             m_ShowServer = false;
    12.                         }
    13.                         ypos += spacing;
    14.                         if (GUI.Button(new Rect(xpos, ypos, 100, 20), "Internet"))
    15.                         {
    16.                             manager.SetMatchHost("mm.unet.unity3d.com", 443, true);
    17.                             m_ShowServer = false;
    18.                         }
    19.                         ypos += spacing;
    20.                         if (GUI.Button(new Rect(xpos, ypos, 100, 20), "Staging"))
    21.                         {
    22.                             manager.SetMatchHost("staging-mm.unet.unity3d.com", 443, true);
    23.                             m_ShowServer = false;
    24.                         }
    25.                     }
    -The "localhost" server don´t use bandwich from Unity servers (and don´t cost money and CCU)? it is free for us using this server configuration?.

    -What is the "Staging" server?.

    Thanks in advance.
     
  2. www_3dart_es

    www_3dart_es

    Joined:
    May 24, 2013
    Posts:
    219
    nobody knows?
     
  3. wlwl2

    wlwl2

    Joined:
    Jun 17, 2018
    Posts:
    29
    I know this is an old post, but it's a good question. Here is the answer quoted from the docs (the link is at the bottom):

    Change MM Server

    This button is designed for internal use by Unity engineers (for testing the Multiplayer service). It reveals buttons which assign one of three pre-defined URLs to the MatchMaker Host URI field in the Network Manager - “local”, “staging” and “internet”. However, the “local” and “staging”** *options are only intended for internal use by Unity engineers, and not intended for general use*.

    If you select the “local” or “staging” options, your game cannot connect to Unity’s Multiuser Service. Therefore you should always make sure this option is set to “internet” (which is the default).

    https://docs.unity3d.com/Manual/UNetManagerHUDMatchMakerMode.html