PingReply.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 address of the host that sends the Internet Control Message Protocol (ICMP) echo reply.

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

Public ReadOnly Property Address As IPAddress

Property Value

Type: System.Net.IPAddress

An IPAddress containing the destination for the ICMP echo message.

The Address returned by any of the Send overloads can originate from a malicious remote computer. Do not connect to the remote computer using this address. Use DNS to determine the IP address of the machine to which you want to connect.

The following code example sends an ICMP echo request synchronously and displays the value of this property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: