socket.error:(13,'Permission deied')

A

Austin

.........................
data = ....
self.broadcast_ip = 255.255.255.255

UDPSock.sendto(data,(self.broadcast_ip,36))
..........................


These codes run on Windows without errors and warnings.
But i excute that on Fedora Core 2, it shows the error
"socket.error:(13,'Permission deied')"
i try to disable the firewall and become a root but it doesn't work, either.

Does anyone have any suggestions ?
 
A

Alex Sidorenko

Austin said:
........................
data = ....
self.broadcast_ip = 255.255.255.255

UDPSock.sendto(data,(self.broadcast_ip,36))
.........................


These codes run on Windows without errors and warnings.
But i excute that on Fedora Core 2, it shows the error
"socket.error:(13,'Permission deied')"
i try to disable the firewall and become a root but it doesn't work,
either.

Does anyone have any suggestions ?

Broadcasting is a privileged operation on Unixes, you need to set
SO_BROADCAST flag. See manpage socket(7).

Hope this helps,
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top