Skip to main content

Ping Error Code 2 - ICMP Error Message Tutorial and Solution

If you get error code 2 while pinging to an IP address from the command prompt, follow the steps below to troubleshoot it.

Resolve Ping Error Code 2

Follow steps below to resolve ping error code 2.

  1. Perform Winsock reset

    Open the command prompt and type the following command netsh winsock reset
  2. Reset TCP/IP suite :

    To perform this type the following command on your command prompt and press enter netsh int ip reset c:\tcp.txt
  3. Reboot your computer and check for the issue.
  4. Uninstall and Reinstall NIC:

    The final solution is to uninstall and reinstall Network Adapter driver on your computer. The following link will help you to do this.
    How to Uninstall and Update Driver
  5. Disable Firewall:
    If the issue persists we need to disable the firewall installed on your computer and check for the issue.

Just like ICMP error code 2, there are many other Ping error codes. It would be fine if you are familiar with the most common ICMP error messages. The below link tells how to fix Ping error code 31.
How to Fix ICMP Error Code 31

Sometimes you may receive hardware error messages on your command prompt instead of normal ICMP error codes. In that case, follow the steps provided in the link below to resolve the issue.
How to Resolve ICMP Hardware Error Message

If the Ping packet couldn't reach the destination network, you will get destination net unreachable error message. Below tutorial is about this specific situation.
ICMP Error Message Destination net Unreachable

Removing and reinstalling TCP/IP suite is not just the solution for Ping Error code 2. The same solution works for many other ICMP error codes too. The below link leads to another ping error code with similar troubleshooting steps.
Ping Transmit failed, Error Code 10045

No: Recent Posts
Destination Net Unreachable
Request Timed Out
Getting 169.254.X.X (APIPA) Windows Automatic Private IP Address
Ping Gives Hardware Error
Setup Idea 4G on Android Phone
Bypass Windows Admin Account Password Of Vista, XP, Windows 8
PING: Transmit failed. General Failure
Ping Request Could not Find Host
Error 628: The Connection was Terminated by the Remote computer
Error 797: A Connection to the Remote Access Server was not Made
Adobe Flash Player has Stopped a Potentially Unsafe Operation


Anonymous said…
Could not find a suitable section so I written here, how to become a moderator for your forum, that need for this?
Alex George said…
In case of any queries you can contact me by


About Author

My photo
Alex George
Alex George has Engineering graduation in Computer Science and an MBA in Finance. He had been working as a senior Network Engineer for ten years. His specialization is in Cisco products. Traveling is one of his hobbies and visited various places as part of his onsite work. He visited different places as part of his onsite work like New York, Dubai, London, etc. Right now Alex is a director of one of the leading career development firms in India, which trains students for UPSC, SSC, and PSC examinations. He guides a lot of students to get selection for various prestigious institutions like CBI, Income Tax Department, etc. Alex George is a stock market investor and a very active intraday trader. Engineering Background: He has a B.Tech in Computer Science and Engineering and passed different network and security courses like CCNA, CCNP (Security), CEH, and various Microsoft certifications. Finance Background: Alex has an MBA in Finance. He is an active intraday trader and a Share Market Investor. Webmaster Skills: Alex is a blogger since 2004. He has a working knowledge of HTML, CSS, PHP, and JavaScrip.