Linux - Test open ports with out telenet, Methods to test open ports
Test open ports with out telenetThere are different methods to test open port of your server without telnet. But a normal used method is telnet.
netcat is a tool which is used to test or connect to different ports of a server
# nc 127.0.0.1 123 < /dev/null; echo $?Will output 0 if port 123 is open, and 1 if it's closed
Test Single port using netcat
# nc -zv 127.0.0.1 80
Multiple ports using netcat
# nc -zv 127.0.0.1 22 80 8080
Range of ports using netcat
# nc -zv 127.0.0.1 20-30
Test open ports using curl
# curl http://127.0.0.1:5472
Test open port using lsof
# lsof -i :80 # lsof -i :8233
Test open port using netstat
# netstat -a | grep -i 'LISTEN'
Test open port using telnet
# telnet servername port
# telnet myserver 8033 Trying server... Connected to server. Escape character is '^]'
Also, nmap which is used to scan ports, but it is supposed not to be used.
The topic on Linux - Test open ports with out telenet is posted by - Guru
Hope you have enjoyed, Linux - Test open ports with out telenetThanks for your time