python broadcast socket

ronpro at ronpro at
Wed Jun 29 16:00:49 CEST 2005

I'm sort of new to both Python and socket programming so I appologize ahead of time if this is a dumb question.  I have found that the following code works on windows but on linux I get an exception.

import socket
s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
s.connect( ( '<broadcast>', 1617 ) )

The exception I get is:

socket.error: (13, 'permission denied')

I have tried this on three Linux machines.  All firewall software is disabled.

Thanks for you time and patience.


More information about the Python-list mailing list