This Blog is to share our knowledge and expertise on Linux System Administration and VMware Administration

Monday, October 16, 2017

How to check the UDP port is listening on Remote host?

The nc (or netcat) utility is used for just about anything under the sun involving TCP or UDP.  It can open TCP connections, send UDP packets, lis-ten on arbitrary TCP and UDP ports, do port scanning, and deal with both IPv4 and IPv6.
  
NAME

     nc - arbitrary TCP and UDP connections and listens

[root@nsk-linux ~]# nc -v -u -z -w 3 10.0.2.15 1-1024
Connection to 10.0.2.15 68 port [udp/bootpc] succeeded!
Connection to 10.0.2.15 631 port [udp/ipp] succeeded!


10.0.2.15= Server IP (chane as per your needs)
1-1024    = Range of UDP ports

No comments:

Post a Comment