Send an echo datagram to the default host.
This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.
The Echo method sends an ICMP echo datagram to the specified host, providing a simplified interface for pinging a remote system. If the method returns a value of true, then a reply was received for the echo datagram that was sent. This would typically indicate that the client can establish a reliable connection to the server. A return value of false indicates that there was no response to the echo datagrams. The remote host may not exist or may not be available.
The value returned by the TripAverage property provides information about the latency between the two hosts. Higher average time values would indicate greater latency and reduced throughput between the systems.
The failure for a host to respond to an ICMP echo datagram may not indicate a problem with the remote system. In some cases, a router between the local and remote host may be malfunctioning or discarding the datagrams. Systems can also be configured to specifically ignore ICMP echo datagrams and not respond to them; this is often a security measure to prevent certain kinds of denial-of-service attacks.
The value of the HostName property specifies the remote host that the echo datagram will be sent to. The Timeout property specifies the timeout period in milliseconds. The TimeToLive property specifies the time-to-live value.
IcmpClient Class | SocketTools Namespace | IcmpClient.Echo Overload List