Good day Dear,
Please I am currently looking for library/unit that I can use to check network connectivity.
Hoping I will find a help.

Mailing lists / lazarus / 2013-06
5 messages · 4 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Good day Dear,
Please I am currently looking for library/unit that I can use to check network connectivity.
Hoping I will find a help.
Le 25/06/2013 07:34, Eric Kom a ?crit :
Good day Dear, Please I am currently looking for library/unit that I can use to check network connectivity.
Indy + TIdIcmpClient then Ping.
Look at http://kumanov.com/docs/prog/indy/007395.html Indy 10.5.9 compiles OK with Lazarus+FPC
Antonio.
Hoping I will find a help.
Antonio Fortuny wroteIndy + TIdIcmpClient then Ping.
Not all systems on a network will reply to a ping test? I know my systems don't, because I disabled it for security reasons.
Regards,
- Graeme -
Le 25/06/2013 10:24, Graeme Geldenhuys a ?crit :
That's right. You only have to use a well known internal or external machine which will answer ping requests, i.e. 8.8.8.8 always responds to ICMP ping rquests.
You can even check wether the internal connection works by choosing a well known internal machine.
This way will make you sure that you either have an access to the intra or extra network or none.
Please I am currently looking for library/unit that I can use to check network…
The other replies about doing pings look good. About 15 years ago I wrote up an answer to this question:
http://www.brenemanlabs.com/iConnect.htm
My answer also has some clues for the old days when using a modem to call an ISP but pinging is discussed at the bottom. :)