You can create a port listener using Netcat .
yum install nc -y
root@rmohan:~# nc -l 5000
you can also check if port is open or not using netstat command .
root@vm-rmohan:~# netstat -tulpen | grep nc
tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 0 710327 17533/nc
you can also check with nc :
Netcat Server listener :
nc -l localhost 5000
Netcat Client :
root@vm-rmohan:~# nc -v localhost 5000
Connection to localhost 5000 port [tcp/*] succeeded!
Recent Comments