Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question How to run a Server using multiplay service?

Discussion in 'Game Server Hosting' started by sava-game, Feb 14, 2023.

  1. sava-game


    Feb 14, 2023
    I created test server.json in project folder, but getting some errors.
    see the screenshot.
    I am trying to run a sample project from Matchmaker service documentation.
    How to run it on my local?

    Attached Files:

  2. danri


    Unity Technologies

    Jun 21, 2019

    The sample project is attempting to connect to a localhost API that exists in the real Multiplay environment. Currently there is not a way to run this API on your local machine.

    I would suggest adjusting your server codebase to have a mechanism to check if it is running on Multiplay or not. This could be as simple as creating a new command line argument (e.g. "-local") and parsing with the GetCommandLineArgs system method -