The Computer Oracle

Cannot ping a Windows 11 machine

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Drifting Through My Dreams

--

Chapters
00:00 Cannot Ping A Windows 11 Machine
01:14 Accepted Answer Score 43
02:08 Answer 2 Score 5
03:10 Answer 3 Score 2
04:56 Answer 4 Score 2
05:21 Answer 5 Score 0
05:37 Thank you

--

Full question
https://superuser.com/questions/1683853/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#networking #firewall #homenetworking #ping #windows11

#avk47



ACCEPTED ANSWER

Score 43


After poking around I managed to enable ICMP responses on my Windows 11 machine:

Open Windows Defender Firewall and select Advanced Settings in the sidebar. Switch to Inbound Rules via the Getting Started page or the sidebar. Find the rule named "Core Networking Diagnostics - ICMP Echo Request (ICMPv4-In)" with Profile of "Private, Public" (unless you're on a corporate domain...). You can right-click the rule and Enable Rule.

You might also want to do the same for the IPv6 version named "Core Networking Diagnostics - ICMP Echo Request (ICMPv6-In)". I don't know why Microsoft decided to disable these by default.




ANSWER 2

Score 5


In addition to Morphit's answer there is an additional option (if you want to use file and printer sharing on your network):

  1. Check your connection classification (private, public, domain).

  2. Go to Control Panel -> Network and Sharing Center -> Change advanced sharing settings. Turn on file and printer sharing, make sure that you choose correct network profile.

This will automatically activate the appropriate rules in Windows Defender Firewall, e.g. File and Printer Sharing (Echo Request - ICMPv4-In). This will have the same effect as activating the rule Core Networking Diagnostics - ICMP Echo Request (ICMPv4-In) directly.

Please note: this will enable people on your LAN to access files and printers if you turned on sharing. If you don't want to use it, go with Morphit's answer.




ANSWER 3

Score 2


Look in Start, Settings, Internet and make sure your connection is set to Private. Windows 11 can make Ethernet Public and you need to set this to Private.

(I am on an unsecured network myself right now).

Windows 11 Private Network

Make sure in Advanced Network and Sharing center that Network Discovery is ON for Private Networks.

Windows 11 has made default security more controlled than Windows 10.

Check also in Advanced System Properties and turn on Remote Access connections for this device. Try this - it should not make a difference to Ping.

Windows Firewall should be Default.

I make network settings, firewall settings, and IP addressing to be very much standard or default.

Update (as I am back at my Windows 11 Pro Machine)

I can connect from my Windows 10 machine to my Windows 11 machine and open/copy/paste files (file transfer).

I can Remote Desktop from Windows 10 (Windows RDP) to my Windows 11 machine and that works.

So all that I need to do works.

I cannot ping my Windows 11 machine even though I can do everything else.

To enable Ping. Open an Admin Command prompt.

netsh advFirewall Firewall add rule name="your rule name" protocol=icmpv4:8, any dir=in action=allow

Enable Ping Windows 11

Command to Activate PING in Windows 11 CMD:

netsh advFirewall Firewall add rule name=”Rule name” protocol=icmpv4: 8, any dir=in action=allow




ANSWER 4

Score 2


Run the following commands in an administrative shell to allow pings through the Windows Firewall.

IPv4:

netsh advfirewall firewall add rule name="ICMPv4 Allow Ping Requests" protocol=icmpv4:8,any dir=in action=allow

IPv6:

netsh advfirewall firewall add rule name="ICMPv6 Allow Ping Requests" protocol=icmpv6:8,any dir=in action=allow



ANSWER 5

Score 0


do you have custom IP settings? are linux device and win11 machine on the same subnet? if not, make sure the default gateway in win11 is set correctly