PDA

View Full Version : [ubuntu] netcat not working in listen mode



Borisaniya
February 22nd, 2010, 04:59 AM
Hello,

I have used the netcat with following command in other versions of Ubuntu but its not working with Ubuntu 9.10

$ nc -l -p 3333
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port]
[-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol]
[-x proxy_address[:port]] [hostname] [port[s]]

What is wrong with it ?

Thanks in advance

liam_p
April 15th, 2010, 12:22 AM
Hello,

I'm using lucid and had the same problem. ncat worked (been renamed?)

Cillean
May 7th, 2010, 01:43 PM
I encountered the same problem. The solution is simple: In the new version, the port is specified without the -p option.
The new syntax would be:

nc -l 3333