3
1
In the network my IP is 192.168.1.101. I am trying to establish my another home pc whose IP is 192.168.1.102(connected using a router). Now when I ping when the 192.168.1.102 is turned off, I get Sent = 4, Received = 4, Lost = 0 (0% loss)
. but, that PC is turned off,
- why I would get
0% loss
. I also get this0% loss
when the 192.168.1.102 is turned on. - And by
Destination host unreachable.
is it safe to assume that after pinging any ip, if I get this, then that IP is disconnected from the network? - Is there are only 2 states that an IP can be in a network? reachable(switched on and can be pinged) and unreachable(turned off so can't be pinged)
- Can ping be blocked by firewall? If yes, how to check if that IP is in my network?(I am trying to develop a client server software, & I am looking for a way to detect a valid IP, which will be authenticated from the server side.)
when 192.168.1.102 is turned off
C:\Users>ping 192.168.1.102
Pinging 192.168.1.102 with 32 bytes of data:
Reply from 192.168.1.101: Destination host unreachable.
Reply from 192.168.1.101: Destination host unreachable.
Reply from 192.168.1.101: Destination host unreachable.
Reply from 192.168.1.101: Destination host unreachable.
Ping statistics for 192.168.1.102:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
when 192.168.1.102 is turned on
C:\Users>ping 192.168.1.102
Pinging 192.168.1.102 with 32 bytes of data:
Reply from 192.168.1.102: bytes=32 time=172ms TTL=128
Reply from 192.168.1.102: bytes=32 time=1ms TTL=128
Reply from 192.168.1.102: bytes=32 time=1ms TTL=128
Reply from 192.168.1.102: bytes=32 time=29ms TTL=128
Ping statistics for 192.168.1.102:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 172ms, Average = 50ms
+1 It's almost certainly an ARP lookup failure between the .101 host and the new .102 host when the .102 host is off, and it's a bug in the Windows
ping
command that it would report a local ARP failure as somehow counting as an ICMP echo reply being received. – Spiff – 2011-07-31T07:47:55.293