docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RelayServer

    Deprecated: Use the serverEndpoints collection instead. Refer to the RelayServerEndpoint object. The IPv4 connection details of a Relay server. The Relay server configuration determines the network protocol (currently only UDP) required by this IP address and port combination.

    Inheritance
    object
    RelayServer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Relay.Models
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    [Preserve]
    [DataContract(Name = "RelayServer")]
    public class RelayServer

    Constructors

    RelayServer(string, int)

    Deprecated: Use the serverEndpoints collection instead. Refer to the RelayServerEndpoint object. The IPv4 connection details of a Relay server. The Relay server configuration determines the network protocol (currently only UDP) required by this IP address and port combination.

    Declaration
    [Preserve]
    public RelayServer(string ipV4, int port)
    Parameters
    Type Name Description
    string ipV4

    The IPv4 address of the Relay server.

    int port

    The port number of the Relay server.

    Properties

    IpV4

    The IPv4 address of the Relay server.

    Declaration
    [Preserve]
    [DataMember(Name = "ipV4", IsRequired = true, EmitDefaultValue = true)]
    public string IpV4 { get; }
    Property Value
    Type Description
    string

    Port

    The port number of the Relay server.

    Declaration
    [Preserve]
    [DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)]
    public int Port { get; }
    Property Value
    Type Description
    int
    In This Article
    Back to top
    Copyright © 2024 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)