3 Answers
  • 3
name Punditsdkoslkdosdkoskdo

Can we ping an address:port?

I am not into networking, and I have the following question related to the Linux ping command.

Can I only ping an address? For example:

[email protected] ~ $ ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_req=1 ttl=47 time=202 ms
64 bytes from ( icmp_req=2 ttl=47 time=206 ms
64 bytes from ( icmp_req=3 ttl=47 time=215 ms

Or can I also ping an address:port, for example:

If I try this one it doesn't work:

[email protected] ~ $ ping
ping: unknown host

Is it possible ping something like address:port? If it is possible, why doesn't what I tried work?

Is there any ping cmd or tool that allows for pinging an ip address thats not a default port?

i.e on port 1521

Basically we are having a problem where I am timing out when I try to hit an oracle database on another server. I can ping the server IP and it returns 100%, but a tnsping of the db times out. Oracle uses port 1521 for communication.

I think this is not feasable because probably the pinging of an ip of a server is on a designated port.

  • 0
Reply Report

There is a nice utility called hping which can do that:

Checking port: Here hping3 will send a Syn packet to a specified port (80 in our example). We can control also from which local port will start the scan (5050).
hping3 -V -S -p 80 -s 5050

sudo hping2 -c 1 -I wlan0 -S -p 22 (wlan0 S set, 40 headers + 0 data bytes len=46 ip= ttl=64 DF id=0 sport=22 flags=SA seq=0 win=5840 rtt=2.3 ms  --- hping statistic --- 1 packets tramitted, 1 packets received, 0% packet loss round-trip min/avg/max = 2.3/2.3/2.3 ms

  • 0
Reply Report

Related Questions

Trending Tags