Q100705: How to use the ping command to test network connectivity

SUMMARY  

If you are using a Floating license and one of your client machines is unable to checkout a license from the license server, you can use the ping command to check if the two machines are able to communicate with each other.

 

MORE INFORMATION
Pinging works by relaying data between two network points. The ping command sends small amounts of data (packets) to a destination host name or IP Address. The status of the packet is displayed as received or not received within the command prompt or terminal window letting the user know if the communication was successful or not.

 

TROUBLESHOOTING

The Hostname and IP Address are required to use the ping command and are included as part of the License Diagnostic file from the Foundry License Utility, more information on generating a diagnostic log can be found in the Q100105: How to generate a license diagnostic file article.

 

You can also use the following steps to find your Hostname and IP Address.

HOSTNAME

To find your hostname, open a command prompt or terminal window, type hostname and press enter.

 

IP ADDRESS

Finding an IP Address varies depending on the operating system.

Windows To find your IP Address in Windows, open a command prompt window, type ipconfig and press enter. 

The IP Address is displayed as the IPv4 address on your Ethernet or WiFi adapter.

 

Windows:

To find your IP Address in Windows, open a command prompt window, type ipconfig and press enter. 

The IP Address is displayed as the IPv4 address on your Ethernet or WiFi adapter.

Linux:

To find your IP Address in Linux, open a terminal window, type ifconfig -a and press enter. 

The IP Address is displayed as the inet address.

NOTE: On Linux, the command will display all available network cards, the primary network card will be associated with eth0.

MacOS:

To find your IP Address in macOS, open a terminal window and type ipconfig getifaddr en0 and press enter. 

NOTE: For macOS, the command will only find the IP Address for the network card associated with en0 and this may need to be changed if you are using a network card other than your primary ethernet adapter.

 

USING PING IN WINDOWS

After you have your hostname and IP address you can use the ping command to test connectivity, the ping command is used a bit differently depending on the operating system.

  1. Open command prompt

  2. In the command prompt, type ping <destination host name or IP Address> and hit enter (Replace <destination host name or IP Address> with your host name or IP Address)

  3. To identify if the ping was successful on Windows, you can look under the Ping statistics area and check how many packets were Received or Lost.

    A successful ping will show:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)

    An unsuccessful ping will show:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

    If the hostname can not be found in the network, you will get the following error.
    Ping request could not find host <hostname>. Please check the name and try again.

 

USING PING IN LINUX and MACOS

  1. Open Terminal

  2. In the terminal window, type ping -c 5 <destination host name or IP Address> and hit enter (Replace <destination host name or IP Address> with your host name or IP Address)

  3. To identify if the ping was successful on either Linux or macOS, you can look under the Ping statistics area and check how many packets were Received or Lost.

    A successful ping will show:
    5 packets transmitted, 5 received, 0% packet loss, time 1ms

    An unsuccessful ping will show:
    5 packets transmitted, 0 received, 100% packet loss, time 4000ms

    If the hostname can not be found in the network, you will get the following error.
    Ping: <hostname>: Name or service not known

 

CLEARING DNS CACHE

If you are unable to get a response from the computer you are pinging, this could be related to a DNS cache issue.

The following steps explain how to clear the DNS cache in your operating system.

Windows:

  1. Open command prompt

  2. In the command prompt, type ipconfig /flushdns and hit enter

Linux:

By default Linux does not have DNS caching enabled, if you have installed a third party DNS caching service in Linux, please refer to the documentation for the third party DNS server to flush the DNS cache.

macOS:

  1. Open Terminal

  2. In the terminal window, type dscacheutil -flushcache and press enter.

 

FURTHER READING 

The issue can also be related to a Firewall blocking the communication between the two points.

For information on running a license server through a firewall, please refer to the Q100216: How to use a license server through a firewall article.

If you are still seeing any issues after performing the steps outlined in this article, then please open a Support ticket and let us know the issue you are encountering and the troubleshooting steps you have taken so far.

For more information on how to open a Support ticket, please refer to the Q100064: How to raise a support ticket article.

    We're sorry to hear that

    Please tell us why