Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by Ward, mdpc, faker, masegaloeh, Katherine Villyard Apr 19 '15 at 11:02

This question appears to be off-topic. The users who voted to close gave these specific reasons:

If this question can be reworded to fit the rules in the help center, please edit the 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

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: – 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

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