How to check if remote port is open in linux (if nc isn’t available) ?

Its actually quite simple.

Just install tcping package. In Centos you can download it from EPEL repo:

[[email protected] ~]# yum search tcping
Loaded plugins: fastestmirror
tcping.x86_64 : Check of TCP connection to a given IP/Port
[[email protected] ~]# yum install tcping
#### Once installed #####
[[email protected] ~]# tcping localhost 80
localhost port 80 open.

Hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *