Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have deployed my ASP.NET application on Windows Server 2008 R2. Now, I want to block all ping requests to this server without affecting the operation of my ASP.NET application.

share|improve this question
Why do you want to block ping? –  Shane Madden Apr 21 '12 at 17:22
@ShaneMadden: want ping request disable ie(ping from cmd gives no response) –  Satinder singh Apr 21 '12 at 17:26
But why? What threat do yo believe you are protecting from? –  Zoredache Apr 21 '12 at 20:19
Why -vte vote ??? –  Satinder singh Apr 22 '12 at 12:53

2 Answers 2

Try running:

netsh firewall set icmpsetting 8 disable
share|improve this answer
The netsh firewall context is deprecated in Windows 2008 R2. However, the alternative that the warning message recommends is netsh advfirewall firewall, and netsh advfirewall firewall set icmpsetting 8 disable does not work, it says that the command was not found. Apparently the new approach is to just make a rule and treat ICMP as just another protocol: support.microsoft.com/kb/947709 –  JamesCW May 29 '12 at 19:35

Here's the solution

Go to Start >> Administrative Tools >> Windows Firewall with Advanced Security >> Inbound Rules >> File and Printer Sharing (Echo Request – ICMPv4-IN) >> right click and select Enable Rule.

well now my application works fine and from cmd if you try to send ping request to my server u will not recieve any response. This is what i need :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.