docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ResetListenPort

    ResetListenPort(int)

    Listen on a new port the next time the server starts. If the server is already running, it will be stopped and restarted automatically.

    Declaration
    public void ResetListenPort(int port = 0)
    Parameters
    Type Name Description
    int port

    Specify a port to listen on. Default is 0 to choose any open port

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 27, 2023