job.answiz.com
3 Answers
  • 3
Votes
name
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 onofri.org
PING onofri.org (67.222.36.105) 56(84) bytes of data.
64 bytes from onofri.org (67.222.36.105): icmp_req=1 ttl=47 time=202 ms
64 bytes from onofri.org (67.222.36.105): icmp_req=2 ttl=47 time=206 ms
64 bytes from onofri.org (67.222.36.105): icmp_req=3 ttl=47 time=215 ms

Or can I also ping an address:port, for example: onofri.org:80?

If I try this one it doesn't work:

[email protected] ~ $ ping onofri.org:80
ping: unknown host onofri.org:80

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 192.168.xxx.x 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 0daysecurity.com


sudo hping2 -c 1 -I wlan0 -S -p 22 192.168.100.1HPING 192.168.100.1 (wlan0 192.168.100.1): S set, 40 headers + 0 data bytes len=46 ip=192.168.100.1 ttl=64 DF id=0 sport=22 flags=SA seq=0 win=5840 rtt=2.3 ms  --- 192.168.100.1 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