1819682 Members
3555 Online
109605 Solutions
New Discussion юеВ

how to ping to port

 
SOLVED
Go to solution
Nagaraj Dandeboyina_1
Occasional Contributor

how to ping to port

Hello,

can some one suggest me how to ping from local system to remote system using port??

Local IP: 3.4.5.6
Remote ip: 12.13.14.15 port 3299

From local system I am able ping remote system, but want make sure that I can also ping to remote system with port 3299.

How can I check? Syntax??

Thx for ur help.
3 REPLIES 3
Brian Bergstrand
Honored Contributor
Solution

Re: how to ping to port

You can't ping a port, at least not using 'ping'. The way to test if a port is open is with telnet:

telnet 12.13.14.15 3299

If you get connected, then the port is open. If you get "connection refused", then the port is closed.

HTH.
Hoefnix
Honored Contributor

Re: how to ping to port

You can also user rpcinfo to see if a program is running on a specific host.
Use "man rpcinfo" to see details.
An example is
rpcinfo -p

You get a list of ports and programs that are running on the host
Elmar P. Kolkman
Honored Contributor

Re: how to ping to port

This works unless the port is an udp port. In that case you can not be certain if it works unless you use the real software that needs to use this port.

But if you can ping the server without packetloss, and there is no firewall in between the two systems, you should be fine.
Every problem has at least one solution. Only some solutions are harder to find.