TPing.Address

From Overbyte
Jump to navigation Jump to search

Main page -> ICS component reference -> TPing -> Address

Definition

property Address: string;

Description

This property specifies the host name to which the ping component shall send the ICMP packets used to test availability of this host. Host address is either a DNS name or an ip-address.

Example

<syntaxhighlight lang="delphi">

 Ping.Address := '192.168.0.2; // check if a PC with the IPv4 address 192.168.0.2 is available in your network
 Ping.Ping;
 
 Ping.Address := 'wikipedia.org'; // check if wikipedia.org serving host is online
 Ping.Ping;

</syntaxhighlight>

Best practices

How to