Make A Server Build

Before you build your server make sure the EMI_NetworkManager component has the "Auto Start Server Build" enabled.

Making a server build is extremely easy. To do this go to Unity's Build Settings.

  1. Make sure all the scenes are going to be included into your build (that you want)
  2. Make sure Server Build is enabled in the Build Settings Window A. Select Build if you plan on running the server in a different location other than your local machine
  3. (Optional) Select Development Build if you want the full stack trace to appear after every log message
  4. Make sure you select the correct platform you want to run the server on A. If in a cloud setting you want to select Linux, or a linux based machine B. If for a Mac based machine, select Mac C. If for a windows based machine, select Windows
  5. Select Build and Run A. Make a new folder called Server (Name doesn't matter) and save do this directory
  6. When done, and you selected Build And Run this will open a command prompt and it will automatically start the server A. If you selected Build you will need to manually start by double clicking the executable B. You can also start the executable via command line: ./<my_executable_name>

Your server is now live and as long as you have the proper settings, clients can now connect to it. If just running a client via localhost this should be enough to test. If running a live test with other machines connecting to your server, read the next section on server setup.