DatagramSocketInformation.RemoteAddress DatagramSocketInformation.RemoteAddress DatagramSocketInformation.RemoteAddress DatagramSocketInformation.RemoteAddress DatagramSocketInformation.RemoteAddress Property

Definition

The IP address of the remote network destination associated with a DatagramSocket object.

public : HostName RemoteAddress { get; }
HostName RemoteAddress();
public HostName RemoteAddress { get; }
Public ReadOnly Property RemoteAddress As HostName
var hostName = datagramSocketInformation.remoteAddress;

Property Value

The IP address of the remote network destination.

Additional features and requirements

Capabilities
ID_CAP_NETWORKING [Windows Phone]

Remarks

The RemoteAddress property represents the remote IP address for the remote network destination associated with a DatagramSocket object.

An app can set the remote hostname or IP address and remote service name or UDP port number to use by calling the ConnectAsync or GetOutputStreamAsync method on the DatagramSocket. The connect operation will bind the socket to a specific remote IP address and remote UDP port number. The RemoteAddress property is the IP address that remote hostname resolved to.

See also