docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ServerConfig

    The server configuration for the current session.

    Inheritance
    object
    ServerConfig
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Multiplay
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class ServerConfig

    Constructors

    Name Description
    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.

    Properties

    Name Description
    AllocationId

    The allocation ID.

    IpAddress

    The connection ip for the session.

    Port

    The connection port for the session.

    QueryPort

    The Server Query Protocol Port.

    ServerId

    The server ID.

    ServerLogDirectory

    The directory logs will be written to.

    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)