Skip to the content ForoHackers
Log inJoin

Confession: I still use telnet to check if a port is open

Network administration
#1109 · anonymous · · Report

be me, ten years in ops need to check if a port answers type telnet host 443 screen goes black press Ctrl+], then quit, like an animal every. single. time.

Do not tell my team. They think I use something modern.

#1779 · anonymous · · Report

nc -vz host 443 and you are done. Or without installing anything, in bash:

timeout 3 bash -c '</dev/tcp/192.0.2.10/443' && echo open || echo closed

Works on any box that has bash. No judgement though, telnet got us all here.

#1780 · anonymous · · Report

Telnet is fine for "does a TCP handshake complete". Just remember that "open" only means the three-way handshake finished, not that the service behind it is healthy. A load balancer will happily accept and then fail you.

#1781 · anonymous · · Report

press Ctrl+], then quit, like an animal

I felt this in my fingers.

Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply