Встроенный брандмауэр Windows в целях безопасности по умолчанию блокирует входящий ICMP трафик как в десктопных Windows 10/11, так и в Windows Server. Это означает, что вы не сможете удаленно проверить доступность компьютера с помощью стандартной команды
ping
, т.к. она будет отвечать о превышении интервала ожидания запроса (
Request timed out
) для ICMP Echo-Reply. Если вы хотите сделать возможной проверку доступности хостов Windows по протоколу ICMP из системы мониторинга или вручную из командной строки, можно разрешить ответы на ICMP эхо-запросы.
Чтобы разрешить отправку ответов на запросы по протоколу ICMP, нужно включить предустановленные правила в брандмауэре Windows.
- Откройте оснастку управления Windows Defender Firewall with Advanced Security, выполнив команду
wf.msc
- Перейдите в раздел Inbound Rules
- Найдите правило Core Network Diagnostics – ICMP Echo Request (ICMPv4-In) и включите его.
- В моем случае есть два правила с этим именем. Одно для частного и общедоступного сетевого профиля Windows, и второе для доменного. Я включил их оба. Можно также включить правило, разрешающее ICMP ответы для IPv6 протокола (если используется).
Есть также другое правило File and Printer Sharing (Echo Request – ICMPv4-In), которое также разрешает компьютеру отвечать на эхо-запросы
ping
.
Попробуйте пропиговать ваш компьютер и убедитесь, что теперь он отвечает на ICMP запросы.
Можно включить правила Windows Firewall, разрешающие ответы на эхо-запросы ICMP с помощью такой команды PowerShell:
Set-NetFirewallRule -Name CoreNet-Diag-ICMP4-EchoRequest-In -enabled True
Если нужно ограничить список IP подсетей или хостов, которым разрешено отправлять ответы на ICMP запросы, выполните команду:
Set-NetFirewallRule -Name CoreNet-Diag-ICMP4-EchoRequest-In -enabled True -RemoteAddress 192.168.12.0,192.168.31.94
Откройте свойства правила в Windows Firewall и проверьте, что теперь правило разрешающие ICMP ответы будет работать только для указанных IP/подсетей.
Если в файрволе отсутствует (удалено) правило для входящих ICMP запросов, можно создать его из командной строки:
netsh advfirewall firewall add rule name="Allow_ICMPv4_Echo" protocol=icmpv4:8,any dir=in action=allow
Другой пример PowerShell команды, которое создаст правило файервола, разрешающего ping для всех хостов в локальной сети:
New-NetFirewallRule -DisplayName "Allow_ICMPv4_Echo" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress localsubnet -Action Allow
Если нужно заблокировать ответы на ICMP эхо-запрос независимо от того, какие правила включены, создайте запрещающее правило, которое будет иметь более высокий приоритет:
New-NetFirewallRule -DisplayName "Block_ICMPv4_Echo" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress localsubnet -Action Block
Чтобы разрешить ответы на ICMP ping на всех компьютерах в сети, можно включить правило Windows Firewall с помощью доменной групповой политики .
- Откройте редактор доменных GPO (
gpmc.msc
), создайте или отредактируйте имеющуюся GPO и назначьте ее на целевую OU или корень домена. - Перейдите в раздел Computer Configuration -> Windows Settings -> Security Settings -> Windows Firewall with Advanced Security -> Inbound rules
- Создайте новое правило, выберите Predefined rule типа Core Networking Diagnostics
- Укажите какие правила ICMP Echo request нужно включить.
- На следующем шаге вы берите Allow the connection.
Recent Windows Operating systems do not reply to ping requests by default. The firewall policy was set to refuse ICMP Echo Requests by default. That means you will be getting ‘Request Timed Out’ from a Windows 10 or Windows 11 PC even though it is connected and set up properly on the network. This same basic network security rule was applied on earlier Operating Systems such as Windows 8.1 and 7 too. This guide shows how to enable ping reply and make your Windows 11/10 desktop or laptop computer respond to ICMP (ping) requests from other network devices.
If the Windows 11/10 computer is in a domain network, then the global domain policy that is related to ICMP echo requests will be applied automatically by your system administrator. In this example, we consider workgroup setup where the domain setup is not available; for example, a small office or your simple home network.
Also, this guide shows how to enable incoming FTP traffic in the Windows 11/10 firewall if you are planning to make your Windows PC an FTP server by using Microsoft IIS or other FTP server programs like FileZilla FTP server.
There is a pre-built firewall rule in Windows 11/10 to enable or disable ICMP echo requests. By default it was disabled. We can enable the rule to allow ping requests in Windows OS which can reply back to other network devices in the local or external network.
To open the rule, go to the control panel by right-clicking on the start button and selecting Control Panel.
In another way, you can search for ‘control’ in Windows 11 search bar.
Make sure to change the view to the ‘Large Icon’ in the control panel to access Windows Firewall (or Windows Defender Firewall in Windows 11) settings quickly and easily.
Click on Advanced Settings to get the ICMP rule (incoming and outbound connections) option.
Since we are going to allow incoming ping requests, we need to open the Inbound Rules area and look for the File and Printer Sharing Echo Request –ICMPv4 rule as shown below.
Once you enabled the Echo Request for ICMPv4 which is for IP v4, then your Windows 10 or Windows 11 computer will respond to ping requests.
You will see ‘Private’, ‘Public’ and ‘Domain’ network profiles in the advanced Firewall security settings while enabling or creating rules. Windows OS have each rule for every network profile. You have to enable the only profile which is related to your current connection.
For example, if you are at home or office local network, then the connection mostly will be in ‘Private’ or ‘Domain’ network profile. Therefore enable the Echo Request rule for these profiles only.
If you connect the same laptop to any public Internet network (like a coffee shop or airport Wi-Fi), Windows 11 will treat it as the public network profile. In this case, your computer will not respond to ping requests which come from the Internet to your computer, because the Echo Request rule is not enabled for the ‘Public’ network profile. Hence, it is essential to not enable unwanted firewall rules for public network profile.
Allow Ping Requests in Windows 11 by Command Prompt
You can also allow the Ping (ICMP Echo requests) by using the command prompt. It will modify the firewall rules. Using the command prompt will be handier to do the task quicker than the GUI. Also, it will be useful to execute these commands remotely when you are connected through a command prompt or on the Windows server core versions.
To enable ping requests for IPV4, execute the following command as administrator. Make sure to open the command prompt (CMD) as run as administrator.
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow
Disable Ping Reply in Windows 10/11:
Visit the same control panel settings and disable the rule (for private or domain network profile). Now the Windows computer will not respond to ping requests from the connected network devices.
Here is the command to disable the ping in the command prompt.
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=block
Enable Incoming FTP Traffic in Windows 11/10/8.1 Firewall
Once you set up an FTP server on a Windows computer, then you must enable inbound FTP traffic in the firewall settings. You can follow the same methods below in Windows 11, even though screenshots are taken on Windows 10.
1) Open the control panel and Windows Firewall.
2) Click on ‘Allow an App or feature through Windows Firewall’. It may have a different option in Windows 8.1 or older versions, but you will find a similar option.
Assuming that you already installed IIS and enabled the FTP server, the firewall settings will automatically detect the FTP server application and list it out in the field.
Click on ‘Change Settings’ and choose ‘FTP Server’. Select the network profile currently the computer is connected, press OK to complete the steps.
3) Another Method: Manually Create The Policy and Allow
If you could not succeed with the above method or are not able to see the FTP server app in the programs list of firewall settings, you can manually create an inbound rule and allow particular FTP ports (20 and 21).
4) In the Control panel Firewall settings, click on Advanced settings.
5) We need to create a new inbound rule to allow FTP traffic. This can be done by allowing particular port numbers in incoming traffic. If you do not have any third party personal firewall programs, this step will ensure that incoming FTP traffic is enabled on the computer even though the Windows firewall is on.
To create a new inbound rule in Windows 10/11 computer, click on Inbound Rules and ‘New Rule’.
6) Select ‘Port’ as the rule type on the next screen.
7) You can leave ‘TCP’ selected and in ports number enter 20 and 21 (20,21). FTP (File Transfer Protocol) uses port numbers 20 and 21 for data transfer and command control, click here to view more information.
Select ‘Allow the connection’ which will accept the incoming traffic/packets on these port numbers.
9) Depending on the network connection you are connected to, select the connection type where the particular rule should be applied. You can select all three (Domain, Private and Public) if you are not sure which one to select.
10) Provide a name for the rule, for example, ‘FTP’. This rule name will show under incoming rules in firewall advanced settings. We can easily modify or disable it later by this name.
If you want to block incoming FTP traffic later, you can simply right-click on it and disable the rule.
Also, you can enable the FTP inbound traffic in Windows 10/11 firewall by command prompt with simple commands which are explained at the Microsoft site here.
With the steps outlined in this guide, you will be able to enable ping reply and FTP packets on your Windows 11/10 computer without completely disabling the Firewall.
Hello! This time I’m going to talk to you about security in Windows 10. It is well known that the system offers multiple layers of security to keep the privacy of our information safe. Certainly, this entails control over network connections. These are really useful for exchanging information and sending data. However, sometimes these connections can fail and so it is imperative to get the error. One of the resources used for this task is PING. It is a basic Internet program that allows a user to verify that a particular IP address exists and can accept requests. This app verifies whether the IP address of a host is currently operational, and how long it takes to respond. Ping works by sending an Internet Control Message Protocol (ICMP) Echo Request to a specified interface on the network and waiting for a reply.
Additionally, it can be used for troubleshooting to test connectivity and determine response time. However, most administrator users consider the ICMP protocol to be potentially unsafe and prefer to block these calls. For this reason, the Windows 10 firewall by default has a security policy of blocking such requests. This is easy to check, trying to ping our computer from a remote machine, we’ll see the following message:
However, it is not advisable to completely block these calls. Therefore, here I show you how to enable and disable ping in Windows 10.
Enable ping in windows 10. Command line mode.
The first thing we need to do is to open a Command Prompt as administrators. Once there, we have to create a rule for IPv4 addressing and another for IPv6. All right, to create the first rule you just have to type the following command in the console:
netsh advFirewall Firewall add rule name="OSRadar Rule PING IPv4" protocol=icmpv4:8,any dir=in action=allow
If everything was done correctly, the CMD should look like this:
Next, we will create the rule for IPv6 addressing:
netsh advFirewall Firewall add rule name="OSRadar Rule PING IPv6" protocol=icmpv6:8,any dir=in action=allow
We have correctly applied the rules for the ping command. We can check that it works, pinging from a remote computer:
To disable the exception for IPv4 addresses, just type the following commanding in the CMD:
netsh advFirewall Firewall add rule name="OSRadar Rule PING IPv4" protocol=icmpv4:8,any dir=in action=block
In the case of IPv6 addressing, the command to write will be the following:
netsh advFirewall Firewall add rule name="OSRadar Rule IPv6" protocol=icmpv6:8,any dir=in action=block
Please note that you can choose the name you want for the rules. If you want to see every rule in the system in detail, just write the following in the terminal:
netsh advFirewall Firewall show rule name=all
Enable ping in windows 10. Graphic mode.
It is also possible to create specific rules to enable and disable ping by entering the Windows 10 Firewall Advanced Security Configuration. With this intention, just type Firewall on the search bar:
Immediately the Firewall options will be displayed. As we did before, we have to create a rule for IPv4 and another for IPv6.
So first, select the Inbound Rules option in the left column and right-click the mouse to create a New Rule:
A rule creation wizard will start. Please select Custom in the rule type and press Next to continue.
On the next screen select All programs and press Next to continue.
In the protocol type, select ICMPv4 and then click on customize.
In the pop-up screen activate the Specific ICMP types box and navigate until you activate the Echo Request option. Press accept to apply the changes.
Next, we can define which specific IP addresses this rule will apply, on the contrary, we will allow the requests of all the addresses. Once the selection is made, press next to continue.
Now select Allow the connection and press Next to continue
In the following screen, we have to select when the new rule will be applied. Please check the 3 available options and press next to continue.
Finally, we only have to assign a name to the rule and press Finish to close the wizard.
Finally, we can see the rule created correctly. To create the exception for IPv6 addressing, we have to repeat the same process but in the protocol and ports window, we have to select ICMPv6.
To disable any of the created rules, just right-click on it and choose Disable Rule.
Conclusion
Finally, we have seen how to enable and disable ping in Windows 10. This will allow us to manage and administer our connections using this command. Finally, we have seen how to enable and disable ping in Windows 10. This will allow us to manage and administer our connections using this command. Consequently, we will be able to monitor the levels of security and data protection on our computers. This is all for now, before saying goodbye I invite you to review our tutorial on bash in Windows 10
— Advertisement —
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
«The best Linux newsletter on the web»
Enabling ping on Windows 10 is a straightforward process that involves configuring your system’s firewall settings. By following a few simple steps, you can allow your computer to respond to ping requests. This is essential for network troubleshooting, ensuring your computer can be reached and diagnosed by other devices.
By enabling ping on Windows 10, you allow your computer to respond to ICMP (Internet Control Message Protocol) Echo Requests. This is useful for network diagnostics and ensuring connectivity between your computer and other devices.
Step 1: Open the Control Panel
The first step to enable ping is to access the Control Panel.
You can open the Control Panel by typing «Control Panel» in the search bar next to the Start menu and selecting the app from the results.
Step 2: Navigate to System and Security
Next, you need to find the System and Security settings.
In the Control Panel, click on «System and Security» to access the relevant settings for configuring your firewall.
Step 3: Open Windows Defender Firewall
Now, it’s time to access the firewall settings.
Within the System and Security section, click on «Windows Defender Firewall» to open the firewall management screen.
Step 4: Access Advanced Settings
To configure detailed settings, you need to access the advanced options.
On the left-hand side of the Windows Defender Firewall window, click on «Advanced settings.»
Step 5: Create a New Inbound Rule
Creating a new rule will allow the system to accept ping requests.
In the Advanced Settings window, right-click on «Inbound Rules» and select «New Rule.»
Step 6: Choose the Rule Type
You need to specify the type of rule you want to create.
Select «Custom» and then click «Next.»
Step 7: Specify the Protocol
Ensure the rule applies to the correct communication protocol.
Select «ICMPv4» from the protocol list and click «Next.»
Step 8: Define the Scope
This step sets the scope for the rule’s applicability.
You can leave the default settings or specify particular IP addresses that can send ping requests. Click «Next.»
Step 9: Allow the Connection
Decide the action the rule performs.
Select «Allow the connection» and click «Next.»
Step 10: Specify Profile
Choose when the rule applies.
Select all the profiles (Domain, Private, and Public) to ensure the rule applies universally. Click «Next.»
Step 11: Name the Rule
Finally, name your new rule for easy identification.
Enter a name like «Enable Ping» and click «Finish» to create the rule.
After you’ve completed these steps, your computer will be able to respond to ping requests from other devices on the network.
Tips for Enabling Ping on Windows 10
- Always double-check the rule settings to ensure they apply to the correct network profiles.
- Consider temporarily disabling your firewall if you encounter issues.
- Use descriptive names for your rules to make them easier to manage later.
- Regularly review your firewall rules to maintain security.
- If unsure about specific settings, refer to Windows support documentation.
Frequently Asked Questions
Why would I need to enable ping?
Enabling ping helps with network diagnostics. It allows other devices to verify if your computer is reachable.
Is it safe to enable ping?
Generally, yes. However, enabling ping can expose your device to certain types of network attacks. Always ensure your firewall is properly configured.
Can I disable ping after enabling it?
Yes, you can disable ping by deleting the inbound rule you created in the firewall settings.
Can I enable ping for specific IP addresses?
Yes, during the scope configuration step, you can specify particular IP addresses allowed to send ping requests.
Does enabling ping affect my internet speed?
No, enabling ping does not impact your internet speed. It only allows devices to check if your computer is reachable.
Summary
- Access Control Panel
- Navigate to System and Security
- Open Windows Defender Firewall
- Go to Advanced Settings
- Create a New Inbound Rule
- Choose Custom Rule Type
- Select ICMPv4 Protocol
- Define the Scope
- Allow the Connection
- Select Profiles
- Name the Rule
Conclusion
Enabling ping on Windows 10 is a vital skill for anyone involved in managing or troubleshooting networks. By following the steps outlined, you ensure your computer can respond to essential diagnostics, helping maintain smooth network operations. If you frequently troubleshoot network issues, knowing how to enable ping can save you countless hours. For more advanced configurations, you can explore additional Windows Defender Firewall settings to match your network’s security requirements. Make sure to regularly review your firewall rules to keep your system secure. Ready to dive deeper? Check out our other guides on Windows 10 network settings for more insights.
Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.
How to Enable Ping in Windows 10
In recent enable ping in Windows 10 Operating systems, you might have noticed that pinging is disabled by default. You’ll find that the default firewall policy disables replying to ICMP echo requests (ping requests). So, when you run a ‘ping’ command on your Windows 10 or Windows 7 PC, you’ll get the message ‘Request Timed Out’. To enable incoming and outgoing ICMP requests, follow these steps:
To enable ping, start by using the search bar and type “ping” in the search bar. You’ll be prompted to enter the administrator password. After you have entered the password, click OK. Then, click on the command line and select “netsh”. In the next window, you should see the new command prompt. After you have entered the required credentials, click OK. The netsh command will enable ping requests on Windows Google.
After you’ve entered the password, click the ‘ping’ button. Once you’ve done that, click OK. Once you’ve entered the correct password, press the Enter key to confirm. The ping command should now work. Once you’ve entered the correct credentials, click OK. You should now see the ping dialog box. This dialog box will ask you to restart your computer. The process should be the same as for Windows 7, but with Windows 10.
Why Can’t I Ping My Windows 10 Computer:
To enable ping in Windows 10, type “ping” into the search box. Now, choose the type of ping you want to use and press Enter. This command will enable pinging on your computer and your internet connection. To turn off pinging, type netsh in the search box. Once this is done, click OK and restart your computer. You should now be able to ‘ping’ your network.
Using ping is essential to ensure that your computer is reachable. To do this, you should be able to use the “ping” command in your operating system’s settings. Then, you can click the “ping” button and wait for the response to appear. After a few seconds, you’ll be able to test whether your PC is reachable or not. The ‘ping’ command will let you see if your PC is reachable or not.
Enable Ping Windows 10 Power Shell:
To enable ping in Windows 10, you’ll need to configure your firewall. If you’re connected to a public network, the firewall will allow the ping request. If your network location is private, you’ll have to disable it manually. You can disable it on all networks in your computer, but if you’re connected to a public network or shared network, you should use a ping rule.
There are several different ways to enable ping in Windows 10. You should first enable the firewall rule for ping. Then, you should select the option “allow ping” and enable it. Alternatively, you should enable the firewall rule for ICMP. This will allow the ICMP request from your computer to be sent to the remote network. This will allow you to ‘ping’ your PC with a wireless connection.
How To Enable Ping In Windows 10:
You can enable ping in Windows 10 by modifying the Firewall. To enable ping, you need to open the Security tab in your Firewall. To do this, you need to click on “Inbound” and then “IPv6” in the right pane. Now, a ping is enabled from the Firewall. This is a common way to enable ping. In case your Firewall has been configured to block ping, you’ll need to uncheck the corresponding rules and re-enable it.
If you are worried that your computer is blocking ping requests, you can disable it by changing the rules. Then, you can click on “Inbound” and enable ping.” Then, click on the “Ping” rule. After enabling the rule, you can check and confirm whether pings are enabled or not. When you’re done, go ahead and install the update. If you’re satisfied with the results, then you can delete the rule.
Firewall Settings:
- Search for Windows Firewall, then click to open it.
- Click Advanced Settings on the left.
- In the left pane of the resulting window, click Incoming Rules.
- In the right pane, find the rules for File and Printer Sharing (Echo Request – ICMPv4-In).
- Right-click each rule and select Enable Rule.
You can also disable the ping service in Windows 10. This is useful if you are trying to communicate with a remote computer. But, it can’t be done with a remote PC. You need to enable ping to connect to a server and see if it can be accessed remotely. To enable ping on your Windows 10 PC, you must first select “network” in the settings list.