How to send broadcast IP address to network?

lightaiyee at gmail.com lightaiyee at gmail.com
Fri Aug 23 08:32:10 EDT 2013


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.



More information about the Python-list mailing list