12

I'm trying to ping a server which has ICMP blocked with normal ping. It's showing:

Request timed out

Is there any other method to ping it?

3 Answers 3

16

I use Nping, which is packaged with Nmap. It queries a port of your choosing, for example port 80, and if the port is open, it will receive a response. For example:

nping --tcp microsoft.com
3
  • That methods gives me Avg rtt: 97ms whilst pings are stable around 200msec. I don't think this is a good method for measuring anything with sub-second accuracy. Commented Oct 22, 2018 at 14:07
  • 1
    This is a good replacement for ping. I installed via homebrew (nping is included in nmap) with brew install nmap and then had to use sudo nping --tcp domain.com
    – ow3n
    Commented Apr 22, 2021 at 13:40
  • Use -p for the port option nping --tcp -p 443 microsoft.com Commented Sep 15, 2023 at 7:55
2

If ICMP is blocked, you can't ping the host in the normal way, however, if it is running an exposed tcp service, you can use tcping. It sends a SYN, listens for SYN/ACK response as the ICMP Echo equivalent and measures the time required for the transaction.

1

That's the idea behind blocking ICMP. You can attempt to identify whether a host is up/down using nmap. http://www.cyberciti.biz/networking/nmap-command-examples-tutorials/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .