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

Austin austin at maxtronic.com.tw
Fri Nov 12 07:15:54 CET 2004


"Jp Calderone" <exarkun at divmod.com> ¼¶¼g©ó¶l¥ó·s»D
:mailman.6260.1100182796.5135.python-list at python.org...
> 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


now i use
self.server = BaseHTTPServer.HTTPServer(( '', self.port ),ServerHandler)
on fedora Core 2
it shows permission denied, too.
What could i do?





More information about the Python-list mailing list