Here we will learn how we can use the ping command from a remote computer to our computer using ICMP Echo Request. But if your PC has a Firewall configured in it , then it can’t be done.
Allow ICMP Echo Request through Windows Firewall
Here we are going to tell you how we can use the ping command from a remote computer. This ping command will as ICMP (Internet Control Message Protocol). These are called special packets that echo the request & target other devices. Then we have to wait for the device to send the ICMP reply back.
Using this you can test the activation of the network connected to the device. You can also measure the display & measure time. Also Read : India has now its first 1 Gbps Fiber Broadband connection – ACT Fibernet
Now what about Windows Firewall. Firewall blocks the ICMP echo request through the network. If you like you can allow the ICMP echo for the testing purposes. Here we got a better solution or it. You can create an exception that allows ICMP request through firewall. But this works in Windows 8 & higher versions.
Creating such exception & opening ports can be security issue. You should be fully aware about it. So if you allow ping requests , then it allows you to block anything you don’t need.
ICMP Echo Request using command prompt
The most preferred way to create an exception for Ping request is doing with command prompt. Now open it with command prompt with admin privileges. Press Window key + X. Click command prompt Admin.
To enable Ping request, you need to create two exceptions which allow traffic through the firewall.
Now copy this command & enter it to the command prompt & press Enter. For ICMPv4 netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request” protocol=icmpv4:8,any dir=in action=allow For ICMPv6 netsh advfirewall firewall add rule name=”ICMP Allow incoming V6 echo request” protocol=icmpv6:8,any dir=in action=allow
After the command , the changes will be made immediately. No need to restart the computer. You can now ping from a remote device.
To display ping request again, you need to disable both the exceptions now. For ICMPv4 exception netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request” protocol=icmpv4:8,any dir=in action=block For ICMPv6 exception netsh advfirewall firewall add rule name=”ICMP Allow incoming V6 echo request” protocol=icmpv6:8,any dir=in action=block
When the exception will be gone, the ping request will be off & shows ‘Request Timed Out’ error.
One thing you need to keep in mind while doing this. You can use any name you like to use, but you have to have to use the same for the whole time.
If you forget the name you can find it out by the command. netsh advfirewall firewall show rule name=all
As there are many names , but you will find the on which is on the top. Also Read :Top 10 harmless pranks for Hackers on 1st April 2017
If you like the information then please write a comment to let us know. Subscribe us for daily newsletters. Thank You.