-
Sockets
I wrote a small application via Socket programming that pings one of our network
servers using an IP address and the servers echo port (#7). I have a total
of 15 servers and only one is available through the echo port, the others
are using the ICMP protocol. The same routine that is running OK with the
echo port fails on the servers using ICMP.
Does anyone know how to ping a server that is configured using the ICMP protocol?
Thanks
JAB
-
Re: Sockets
Hi JAB,
I think u need to build up your own ICMP Datagram packet. PING uses
the ICMP Echo functionality. Check out
http://www.FreeSoft.org/CIE/Topics/81.htm
for a protocol overview. And
http://www.ee.siue.edu/~rwalden/netw.../icmpmess.html
for the format of the Echo packet which you'll need to build. You'll have
to create a Server Socket to receive the responses to the packets that you
send out.
Hope that helps.
Cheers
syed zulfiqar
"JAB" <brunoj@netcarrier.com> wrote:
>
>I wrote a small application via Socket programming that pings one of our
network
>servers using an IP address and the servers echo port (#7). I have a total
>of 15 servers and only one is available through the echo port, the others
>are using the ICMP protocol. The same routine that is running OK with the
>echo port fails on the servers using ICMP.
>
>Does anyone know how to ping a server that is configured using the ICMP
protocol?
>
>Thanks
>JAB
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks