| |
| Testing if you are connected to the internet |
 |
How can I tell at runtime if I am connected to the internet?
You can use the TCP component to retrieve the Local IP
address. If it is "0.0.0.0" then there is no connection. Example: procedure TForm .Button Click(Sender: TObject);
begin
if TCP .LocalIp = '0.0.0.0' then
ShowMessage('Your not connected!');
end;
4/2/99 :47: 3 AM
|
|
| Hits/month |
2,500,000+ |
Downloads (Since May 2000) |
7,393,709 |
| Total Files |
6,023 |
| Forum msgs |
7,670 |
| Articles/FAQs |
70+/900+ |
Top Selling Software at Amazon
|