Problem Solved: Unable to ping Computer in the same network

While connecting computers in the network, your first step is to ping computers in the same network. Most of the time, you are able to ping computers on the same network. But if not able to ping, what to check if 'pinging' doesn't work? This short tutorial provides you to solve connectivity issues.

You can check the IP of your system by using ipconfig command on the Windows and ifconfig command on Linux based system.

How to check whether a computer is connected to another computer by using the ping command on Windows:

  1. Press the Windows key + R.
  2. Type cmd and press Enter.
  3. Write the command ping <IP> and press Enter.
ping <IP>

How to check whether a computer is connected to another computer by using the ping command on Linux based OS:

  1. Click Terminal.
  2. Write the command ping <IP> and press Enter.
ping <IP> 

If you are not able to ping a desktop in the same network, try the below solutions:

(1) Turn Off Windows Firewall

Straight a forward solution. Turn off Windows Firewall. This allows pinging of the computer although this solution is generally not recommended.

(2) Configure Windows Firewall to allow ICMP requests

Check the ICMP settings of Windows. Just check Start > Run > firewall.cpl > Advanced Settings. You get Windows Defender Firewall with Advanced Security. Now create Inbound and Outbound rules to allow ICMP requests. Check Inbound Rules and Outbound Rules. In the right pane, find the file and printer sharing rules (Echo Request - ICMPv4-In). Right-click each rule and select Enable Rule. This may resolve the issue of the ping problem.

3. Check Default Gateway configurations

Check the Default Gateway settings of the computer. That may be the culprit of the problem.

4. Use network protocol analyzer tools to troubleshoot an issue

You can also use advanced network tools such as tcpdump and Wireshark to identify connectivity problems in a network.

5. Configure Linux firewall to configure ping

On Linux system, you can use iptables to configure ICMP protocol or flush all configure rules.

Configure icmp

iptables -D INPUT -p icmp --icmp-type echo-request -j REJECT

Flush all configured rules

iptables -F

Conclusion

This tutorial deals with possible solutions to issues related to computer connectivity. If you cannot ping a computer on the same network, or one computer is able to ping another computer but not vice versa, you can use above mentioned possible solutions to resolve the same.

Subscribe us to receive more such articles updates in your email.

If you have any questions, feel free to ask in the comments section below. Nothing gives me greater joy than helping my readers!

Disclaimer: This tutorial is for educational purpose only. Individual is solely responsible for any illegal act.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

10 Blockchain Security Vulnerabilities OWASP API Top 10 - 2023 7 Facts You Should Know About WormGPT OWASP Top 10 for Large Language Models (LLMs) Applications Top 10 Blockchain Security Issues