Question

When I ping a computer that exists and get a reply, both the request and reply will be shown in Wireshark (I have put icmp as filter).

However if I ping a computer that does not exist the request will not be shown. Obviously there will be no reply but how come the request is not shown?

Edit: Also, if I ping my own IP I will get a reply but no message in Wireshark.

I ping via a direct IP-address, not a hostname. I.e. "ping XXX.XXX.XXX.XXX"

Was it helpful?

Solution

If you ping via hostname, first there will be a DNS lookup to retrieve the IP address. You will not find an IP address because pc doesn't exists, so Ping will not even try to send a request because it doesn't know where to send it to.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top