Re: OT ping sample code
Re: OT ping sample code
- Subject: Re: OT ping sample code
- From: Jason Linhart <email@hidden>
- Date: Mon, 12 Jan 2004 13:29:51 -0500
On 1/12/04 12:56 PM Igor garnov (email@hidden) wrote:
>
The thing is, ping is the only way to know if a host is online. But
>
maybe you know something else?
Ping is not an especially reliable way to tell if a host is online. Many
sites block pings at their firewall, to help prevent some kinds of denial
of service attacks and the ping of death attack. Most hosts respond to
pings, but hardly all.
There is no general way to tell if a host is online without knowing some
additional information about the host. If you want to know if a web
server is up you would try an HTTP request, if you want to know if an FTP
server is up you would try an FTP request. Without that kind of
additional information, there isn't any universal solution.
Jason
-----------------
email@hidden
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.