How to ping a particular port

Asked by jimhayes

Trying to ping port 6600 on 192.168.0.195. What is proper syntax?
Tried 192.168.0.195:6600 & 192.168.195::6600 both get "address cannot be found".
  Thanks in advance
  Jim Hayes

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Hutchinson
Solved:
Last query:
Last reply:
Revision history for this message
Best Jim Hutchinson (jphutch) said :
#1

I don't think you can ping a specific port, at least not with ping. What is it you want to achieve? I find that testing ports is easy with something like shields up (https://www.grc.com/x/ne.dll?bh0bkyd2). Tools like nmap or netstat or iptraf might be better.

Revision history for this message
jimhayes (jthayes) said :
#2

Thanks, will try one of your suggestions. I am monkeying with MPD, connection problems, wanted to test a port. Portscan shows it open, problem appears to be MPD or loose nut in front of the keyboard.

Revision history for this message
hardcorelinux (hardcorelinux) said :
#3

Usually you can telnet to that port, if telnet sees the port is closed it will quit, otherwise the server app running there will treat your telnet session a legit connection, and based on your data protocol will respond to what you type in a successful telnet session: telnet 192.168.195 6600