Results 1 to 1 of 1

Thread: UDP Broadcast to LAN from python script

  1. #1

    UDP Broadcast to LAN from python script

    Comrads, please help!
    I have a Python script, that is correct work on the Ubuntu workstation in LAN, connected to the WL500. Script send the UDP broadcast packet to the network and work very well.
    I'm trying to start this script on the WL-500GPv2 with a this ( firmware.
    When i try to change the broadcast UDP adress to LAN IP address that script work well, but i need to work with broadcast.

    What a hell, probably my problem with a iptables routing, but i don`t enaght knowlege to understant what i need change to make it work well.

    Please help me to issue.

    The my Python script is below.

    import sys, os, socket
    addr = ('', 1111)
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
    t_s ="000000000000000"
    sock.sendto(t_s, addr)

    The chalenge have solved allready. I was need to bind socket to network interface.
    Last edited by mzhuravlev; 14-11-2016 at 04:34. Reason: Solved

Similar Threads

  1. router2sms [python]
    By xz_kostyan in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 152
    Last Post: 13-05-2014, 10:53
  2. Скрипт для скачивания подкастов Python + Google Reader
    By 1ac3124 in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 4
    Last Post: 18-08-2010, 12:36
  3. python time module bug
    By gfreney in forum WL-500g Custom Development
    Replies: 0
    Last Post: 18-01-2008, 15:22
  4. Install python; no success?!
    By ikerstges in forum WL-500g Q&A
    Replies: 4
    Last Post: 07-03-2006, 14:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts