Some typo mistake. Should be host="192.168.0.255", not "192.168.0.102"
On Friday, August 23, 2013 8:32:10 PM UTC+8, light...@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? > > > > Thank you. -- http://mail.python.org/mailman/listinfo/python-list