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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to have a .exe file for running a server?

Discussion in 'Multiplayer' started by 420BlazeIt, Aug 25, 2015.

  1. 420BlazeIt

    420BlazeIt

    Joined:
    Aug 14, 2014
    Posts:
    102
    How do I run a server from a .exe file?
     
  2. Whippets

    Whippets

    Joined:
    Feb 28, 2013
    Posts:
    1,775
    Do you mean how to run a unity standalone exe as a headless server?

    "my-server.exe -batchmode -nographics"
     
  3. 420BlazeIt

    420BlazeIt

    Joined:
    Aug 14, 2014
    Posts:
    102
    The default NetworkManagerHUD component lets you click Server only and then you are hosting a server for the game.
    How can I have an exe file that hosts the server instead of hosting the server in-game?
     
  4. Whippets

    Whippets

    Joined:
    Feb 28, 2013
    Posts:
    1,775
    Ah, uNet HLAPI - not tried that one. But it would seem that you want to run a dedicated server (one that isn't also a client). Maybe one of the uNet guys can answer this one?
     
  5. 420BlazeIt

    420BlazeIt

    Joined:
    Aug 14, 2014
    Posts:
    102
    Hopefully ^_^

    TNet also has this feature where you can host a game (server only) from an exe file and then people with the built game can connect to that server.