IPPacketInformation.Address Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 IPAddress Address { 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: