On Fri, Aug 23, 2013 at 10:32 PM, <lightai...@gmail.com> wrote: > I want to send a broadcast packet to all the computers connected to my home > router. > > The following 2 lines of code do not work; > host="192.168.0.102" > s.connect((host, port)) > > Can someone advise?
You can't establish a TCP socket with a broadcast address. That just doesn't work. Can you please show a whole lot more context so we can see what's happening here? Thanks! ChrisA -- http://mail.python.org/mailman/listinfo/python-list