My remote Linux machine is able to ping an IP address on an internet, but the same action is unable to get the netstat report for that IP.
ping a.b.c.d 64 bytes from a.b.c.d: icmp_seq=1 ttl=64 time=0.509 ms 64 bytes from a.b.c.d: icmp_seq=2 ttl=64 time=0.249 ms 64 bytes from a.b.c.d: icmp_seq=3 ttl=64 time=0.273 ms 64 bytes from a.b.c.d: icmp_seq=4 ttl=64 time=0.357 ms
but netstat is unable to get the output of,
netstat -an a.b.c.d | grep <some port>
it's just getting hang and not even returning my prompt, while I already have been sure about the connections it should list.