I am trying to ping a series of servers frequently using the PingReply class. Most of the time this is fine, but other times I get failed pings. I'm guessing this has something to do with ICMP being disabled on the remote server(s). Is there any way to get a ping to from a server even if ICMP is disabled?
Asked
Active
Viewed 1,478 times
3
-
3If ICMP ECHO is disabled on the responding server, how could the Ping command work? – Gabe Jun 08 '11 at 00:32
-
I assumed they used the same ICMP reply. you could wire sharke the command line ping and see whats going on. – rerun Jun 08 '11 at 00:34
-
I just tested it a few more times and I can't replicate the issue with the command line. Maybe that instance that I tested wasn't an ICMP issue. But the rest must be, because neither the PingReply class nor the ping command return anything. I updated the question. – user Jun 08 '11 at 00:36
-
What does "accurate ping" mean in relation to a server that doesn't respond to pings? – Gabe Jun 08 '11 at 00:43
-
I didn't mean anything explicitly. I just meant something that would yield results as "accurately" as the PingReply would. – user Jun 08 '11 at 01:36
-
@Nate: What information are you trying to determine with your ping? Available options include: "Is the server up?", "What's the TTL?", "What's the maximum packet size?", and "What's the round trip time?". – Gabe Jun 08 '11 at 07:06
-
I'm just trying to determine if the server (accessed directly by it's IP) is online and get the round trip time. – user Jun 08 '11 at 07:49
2 Answers
2
If the remote server won't respond to an ICMP ECHO request, it won't work with the Ping command. Odds are there is some difference between the packet you're sending and the one Ping is sending. You can use something like Network Monitor or Wireshark to see the packets and compare them.
Odds are you're sending a packet with a lower TTL (or maybe too big of a buffer). I would try increasing PingOptions.Ttl
first.

Gabe
- 84,912
- 12
- 139
- 238
-
@Nate: Please update your question to tell us what "accurate ping" means. – Gabe Jun 08 '11 at 01:33
0
The ping command also uses ICMP. If you know of a port that will reliably be open on that machine, you can always establish a telnet connection.

Robotica
- 96
- 1
- 4