Ask Your Question

How can I send a UDP broadcast?

asked 2013-02-19 14:35:38 -0500

danimal gravatar image

updated 2014-09-28 23:37:02 -0500

mether gravatar image

I'm trying to test UDP broadcasts and am using this command:

$ echo "Hello World" | sudo nc -v -u 12000

nc: connect to port 12000 (udp) failed: Permission denied

I have sudo access so I'm wondering how I can correct the permission denied error so that I can send UDP broadcasts.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-02-20 00:28:50 -0500

FranciscoD_ gravatar image

The error doesn't seem to imply that you haven't permissions on your source systems. It seems to say that you haven't permissions on the destination system. Is the port closed in the firewall of the destination system for instance?

12000 doesn't seem to be a standard port for any service. It doesn't show in the list here:

edit flag offensive delete link more


@FranciscoD_ you can check the port numbers at /etc/services

Akshay gravatar imageAkshay ( 2013-02-20 08:56:16 -0500 )edit

I have the firewall and IP tables off. I'm using a non standard port because I'm testing.

danimal gravatar imagedanimal ( 2013-02-22 18:49:56 -0500 )edit

answered 2013-02-20 04:25:50 -0500

PaulCarroty gravatar image
$ echo "Hello World" | nc -v -u 12000
edit flag offensive delete link more

Question Tools


Asked: 2013-02-19 14:35:38 -0500

Seen: 6,353 times

Last updated: Feb 20 '13