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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Austin

    #1

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

    ............... ..........
    data = ....
    self.broadcast_ ip = 255.255.255.255

    UDPSock.sendto( data,(self.broa dcast_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 ?


  • Alex Sidorenko

    #2
    Re: socket.error:(1 3,'Permission deied')

    Austin wrote:
    [color=blue]
    > ............... .........
    > data = ....
    > self.broadcast_ ip = 255.255.255.255
    >
    > UDPSock.sendto( data,(self.broa dcast_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 ?[/color]

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

    Hope this helps,
    Alex

    Comment

    Working...