Difference between revisions of "TPing.Address"

From Overbyte
Jump to navigation Jump to search
(Created page)
 
(→‎Example: fixed code)
 
Line 13: Line 13:
 
   Ping.Address := '192.168.0.2; // check if a PC with the IPv4 address 192.168.0.2 is available in your network
 
   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.Ping;
 
+
 
 
   Ping.Address := 'wikipedia.org'; // check if wikipedia.org serving host is online
 
   Ping.Address := 'wikipedia.org'; // check if wikipedia.org serving host is online
 
   Ping.Ping;
 
   Ping.Ping;

Latest revision as of 22:38, 29 January 2019

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