UDP broadcast on a Mac?

Malte Brill revolution at derbrill.de
Thu Nov 8 06:17:20 EST 2012


Python to the rescue... 

This works from the shell:

python -c "from socket import *; cs = socket(AF_INET, SOCK_DGRAM); cs.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1); cs.setsockopt(SOL_SOCKET, SO_BROADCAST, 1); cs.sendto('This is a test', ('255.255.255.255', 9997));"



More information about the use-livecode mailing list