docs.unity.cn
    Show / Hide Table of Contents

    Method ResetListenPort

    ResetListenPort(Int32)

    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
    Int32 port

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

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, August 12, 2022
    Terms of use