Class ServerAddress
An IP address and port, along with optional public IP addresses for listening behind a 1:1 NAT.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ServerAddress : TransportAddress
Constructors
ServerAddress(String, Int32)
Initializes a new instance of the ServerAddress class.
Declaration
public ServerAddress(string ipAddress, int port)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The IP address. |
System.Int32 | port | The port. |
ServerAddress(String, Int32, String)
Initializes a new instance of the ServerAddress class.
Declaration
public ServerAddress(string ipAddress, int port, string publicIPAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The IP address. |
System.Int32 | port | The port. |
System.String | publicIPAddress | The public IP address. |
ServerAddress(String, Int32, String[])
Initializes a new instance of the ServerAddress class.
Declaration
public ServerAddress(string ipAddress, int port, string[] publicIPAddresses)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The IP address. |
System.Int32 | port | The port. |
System.String[] | publicIPAddresses | The public IP addresses. |
Properties
PublicIPAddress
Gets the first public IP address.
Declaration
public string PublicIPAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
PublicIPAddresses
Gets the public IP addresses.
Declaration
public string[] PublicIPAddresses { get; }
Property Value
Type | Description |
---|---|
System.String[] |