Udp telnet with netcat

The standard telnet utilities that ship with linux or windows allow to telnet to services running on TCP ports. They do not support udp ports. However the utility netcat can be used for working with udp ports in a very similar manner to default telnet utility.

The telnet utility works like this

$ telnet localhost 7000

where localhost is the hostname and 7000 is the port number. For udp ports the syntax for netcat is very similar

$ netcat localhost 7000 -u

The -u option indicates udp port.

Last Updated On : 26th October 2012

Subscribe to get updates delivered to your inbox

About Silver Moon

Php developer, blogger and Linux enthusiast. He can be reached at [email protected]. Or find him on

Leave a comment