v1.1.0
Latest
2021.3+

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
RelayServer
Namespace: Unity.Services.Relay.Models
Syntax
[Preserve]
public class RelayServer

Constructors

RelayServer(String, Int32)

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
TypeNameDescription
StringipV4

The IPv4 address of the Relay server.

Int32port

The port number of the Relay server.

Properties

IpV4

The IPv4 address of the Relay server.

Declaration
[Preserve]
public string IpV4 { get; }
Property Value
TypeDescription
String

Port

The port number of the Relay server.

Declaration
[Preserve]
public int Port { get; }
Property Value
TypeDescription
Int32