socket.error:(13,'Permission deied')
Jp Calderone
exarkun at divmod.com
Thu Nov 11 09:19:52 EST 2004
On Thu, 11 Nov 2004 21:08:41 +0800, "Austin" <austin at maxtronic.com.tw> wrote:
>........................
> 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 ?
>
Try calling this first:
UDPSock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
Jp
More information about the Python-list
mailing list