'Ping - Request timed out

I'm trying to ping another computer that is connected to the same wifi network. Pinging to anything else (localhost, website, etc.) works fine. But when I try to ping to the local ip address of my second computer I get a Request timed out. message

$ ping target_ip

Pinging target_ip with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for target_ip:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),


Solution 1:[1]

  1. Try to ping another device from your local network (pinging localhost or a website is not the same).
  2. Try to ping from target_ip to source_ip (opposite direction).

If you have response in any of 2 cases above, check the firewall on your target machine (or as in your case, for Windows, make sure you are connected to Private Network, not Public). And make sure you are trying to ping the proper IP address.

Solution 2:[2]

I had the same issue, in my case the problem was- I was not able to ping any website like www.google.com or any other external IP address. But I was able to ping my own ipv4 address. If you are not able to ping your own ipv4 address then follow this(https://support.logmeininc.com/central/help/why-do-i-get-request-timed-out-when-trying-to-ping-a-computer). And if you are not able to ping external IP address then there are 2 cases,

  1. You are connected with the ethernet OR ISP connection. Then Ping will work fine.
  2. You are using the mobile hotspot, then try changing the bandwidth to 5GHZ from the mobile phone and connect again. It worked for me I hope it will work for you as well.

Solution 3:[3]

Request Timed Out message tells your computer waited for the acknowledgment of the ping packets sent to the destination IP for a time but received none.

Common causes for this error are either network configuration errors or firewall blocking.

Since you can ping other addresses from your computer successfully, your local computer network configuration is fine.

You can ping the localhost IP (Loopback address) successfully. It means the firewall settings on your computer are fine.

So, as Andriy Zavoloka mentioned, I too doubt the Firewall settings on the destination computer. Disable the firewall on the destination computer and try to ping it again from the first device.

Even though you have mentioned you know the destination IP address is correct, I suggest you use the network discovery feature and verify if the DHCP server of your WiFi network didn't assign a different IP address to the second computer.

Sometimes a simple reboot on the second computer can fix the problem.

If the issue persists, I suggest you power off the WiFi router (I assume you have the access) and switch it on after one minute. It will reset the routing table cache on the WiFi router.

Then check for the new IP address assigned to the second computer and Ping that address from your first computer.

I hope it will fix the problem.

My Reference

Solution 4:[4]

I had the same issue and very similar answers above helped but I do want to add something in that I didn't see.

My set up was to try to ping an Oracle linux virtual machine running on windows from my MacBook

When I went to turn off Microsoft Defender Firewall, it was already off because I had a third party firewall turned on. Make sure you turn off third party firewalls on your host machine; in my case it was Kaspersky. Once this is turned off, Microsoft Defender Firewall will turn on. Make sure to turn this off.

After this, it had worked for me but some other advice that I found helpful was to make sure all firewalls were off on MacOS and to reset your router.

Solution 5:[5]

for windows user goto Firewaall and network protection and turn off Public network it works for me

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andriy Zavoloka
Solution 2 ishan kukde
Solution 3 Padmas
Solution 4 Rhett Harrison
Solution 5 Hamza Qureshi