docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor ServerConfig

    ServerConfig(long, string, ushort, ushort, string, string)

    Creates an instance of ServerConfig. Note that you should not manually create one of these except for testing. Instead, use MultiplayService.ServerConfig to access the server configuration.

    Declaration
    [Preserve]
    public ServerConfig(long serverId, string allocationId, ushort queryPort, ushort port, string ip, string serverLogDirectory)
    Parameters
    Type Name Description
    long serverId

    The Server ID.

    string allocationId

    The Allocation ID for the server.

    ushort queryPort

    The Query Port.

    ushort port

    The Game Session Port.

    string ip

    The Game Session IP Address.

    string serverLogDirectory

    The Server Log Directory.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)