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.
  2. Dismiss Notice

One Server?

Discussion in 'Multiplayer' started by Lejoparden, Aug 12, 2014.

  1. Lejoparden

    Lejoparden

    Joined:
    Aug 8, 2014
    Posts:
    6
    I want it to be one server, only *One* server..
    How do i create it
     
  2. Magiichan

    Magiichan

    Joined:
    Jan 5, 2014
    Posts:
    403
    Code (CSharp):
    1. bool useNat = !Network.HavePublicAddress();
    2. Network.InitializeServer(100, 25000, useNat);
     
  3. Lejoparden

    Lejoparden

    Joined:
    Aug 8, 2014
    Posts:
    6
    Thank you <3