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
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
NAME
nc - arbitrary TCP and UDP connections and listens
[root@nsk-linux ~]# nc -v -u -z -w 3 10.0.2.15 1-1024Connection 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