Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 535  / 2 Years ago, sun, august 28, 2022, 11:28:26

I do need a tool that would work just like ping, but that shows me response on a given port.



I do know about telnet and nmap, but they give me only one result, not a constant loop, with which I could see changes over time.



is there anything like that?


More From » 10.04

 Answers
7

The netcat utility will do exactly what you are looking for:



$ nc -lk 1234


The -l option will start netcat listening on a port. The -k option forces it to keep listening for new connections.



Netcat should be installed on your system by default; it is part of ubuntu-minimal. If not, you can install it with apt-get install netcat-openbsd.


[#32218] Monday, August 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irripri

Total Points: 164
Total Questions: 111
Total Answers: 107

Location: South Georgia
Member since Sun, Aug 8, 2021
3 Years ago
irripri questions
Mon, Aug 29, 22, 03:19, 2 Years ago
Thu, Mar 30, 23, 01:56, 1 Year ago
Thu, Dec 30, 21, 08:53, 2 Years ago
;