How to allow ping on Windows

Problem

You might find that your Windows computer does not respond to ping from another computer on the same network. You can ping from it, but it does not respond to ping.

Solution

The most likely cause of this is that Windows Firewall is turned on. And by default, it disables ICMP echo request in its inbound rules. Enabling ping is easy:

  1. Open Advanced Settings of Windows Firewall.
  2. Go to Inbound Rules Β and enable Networking – Echo Request (ICMPv4-In) for the network profile that is being used.

You should be able to ping this computer as soon as this is enabled.

Tried with: Windows 7 x64

Find hostname from IP address

Problem

You know the IP address of a computer. You want to find out the name of the computer or its hostname.

Solution

The humble ping command can resolve the hostname from a IP address. Use the ping -a 172.20.30.40 command to find the hostname of the computer with IP addressΒ 172.20.30.40.

Tried with: Windows 7