DatagramSocketMessageReceivedEventArgs.RemoteAddress | remoteAddress property

Applies to Windows and Windows Phone

Gets the IP address of the remote sender of the datagram on the DatagramSocket when a message is received.

Syntax


public:
property HostName^ RemoteAddress { 
   HostName^ get();
}

Property value

Type: HostName

The IP address of the remote network destination when the message is received on a DatagramSocket.

Remarks

The DatagramSocketMessageReceivedEventArgs.RemoteAddress property gets the IP address of the remote sender when a datagram was received on a DatagramSocket. A message received event can only occur after a successful connect or bind operation on the DatagramSocket.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

BindServiceNameAsync
ConnectAsync
DatagramSocket
DatagramSocketInformation.LocalAddress
DatagramSocketInformation.LocalPort
DatagramSocketInformation.RemoteAddress
DatagramSocketInformation.RemotePort
DatagramSocketMessageReceivedEventArgs
DatagramSocketMessageReceivedEventArgs.LocalAddress
DatagramSocketMessageReceivedEventArgs.RemotePort
HostName

 

 

Show:
© 2014 Microsoft