IPPacketInformation::Address Property

 

Gets the origin information of the packet that was received as a result of calling the ReceiveMessageFrom method or EndReceiveMessageFrom method.

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

public:
property IPAddress^ Address {
	IPAddress^ get();
}

Property Value

Type: System.Net::IPAddress^

An IPAddress that indicates the origin information of the packet that was received as a result of calling the ReceiveMessageFrom method or EndReceiveMessageFrom method. For packets that were sent from a unicast address, the Address property will return the IPAddress of the sender; for multicast or broadcast packets, the Address property will return the multicast or broadcast IPAddress.

.NET Framework
Available since 2.0
Return to top
Show: