TransWikia.com

Windows to Linux Ping not working while Telnet works

Server Fault Asked by Ehsan Sajjad on January 17, 2021

On Linux we have a service running which is listening on port 9999 but when we try to check it from a Windows machine on same network with PING it says :

Ping request could not find host 10.32.9.82:9999

while when I tried using telnet like

telnet 10.32.9.82 9999

and Telnet got connected successfully.

So what I am trying to understand that why the telnet worked but does PING not as the service is listening on the IP and port on TCP.

One Answer

You can't ping a port number (ping says that the device is reachable, nothing more).

But you can use something like this powershell cmdlet instead: Test-NetConnection

Test-NetConnection 10.32.9.82 -Port 9999

You'll get an output like that, note that the output shows if Ping succeeded, and if the port is reachable, that's two different things !

RemoteAddress          : 10.32.9.82
RemotePort             : 9999
InterfaceAlias         : Ethernet
SourceAddress          : 192.168.1.166
PingSucceeded          : True
PingReplyDetails (RTT) : 1 ms
TcpTestSucceeded       : True

Correct answer by Swisstone on January 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP