Struct UnityTransport.ConnectionAddressData
Structure to store the address to connect to
Inherited Members
Namespace: Unity.Netcode.Transports.UTP
Syntax
[Serializable]
public struct ConnectionAddressData
  Fields
Address
IP address of the server (address to which clients will connect to).
Declaration
[Tooltip("IP address of the server (address to which clients will connect to).")]
[SerializeField]
public string Address
  Field Value
| Type | Description | 
|---|---|
| String | 
Port
UDP port of the server.
Declaration
[Tooltip("UDP port of the server.")]
[SerializeField]
public ushort Port
  Field Value
| Type | Description | 
|---|---|
| UInt16 | 
ServerListenAddress
IP address the server will listen on. If not provided, will use 0.0.0.0.
Declaration
[Tooltip("IP address the server will listen on. If not provided, will use 0.0.0.0.")]
[SerializeField]
public string ServerListenAddress
  Field Value
| Type | Description | 
|---|---|
| String | 
Properties
ListenEndPoint
Endpoint (IP address and port) server will listen/bind on.
Declaration
public readonly Transport.NetworkEndPoint ListenEndPoint { get; }
  Property Value
| Type | Description | 
|---|---|
| Transport.NetworkEndPoint | 
ServerEndPoint
Endpoint (IP address and port) clients will connect to.
Declaration
public readonly Transport.NetworkEndPoint ServerEndPoint { get; }
  Property Value
| Type | Description | 
|---|---|
| Transport.NetworkEndPoint |