I have the following code which sends a udp packet that is broadcasted in the subnet.
udp
from socket import * s=socket(AF_INET, SOCK_DGRAM) s.setso
Try binding to the default address:
s.bind(('',12345))