How to send broadcast IP address to network?

Neil Cerutti neilc at norwich.edu
Fri Aug 23 09:05:51 EDT 2013


On 2013-08-23, lightaiyee at gmail.com <lightaiyee at gmail.com> wrote:
>> The following 2 lines of code do not work;
>> 
>> host="192.168.0.255"
>> host="192.168.0.102"
>> s.connect((host, port))

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 's' is not defined

I bet that's not the same traceback you get. Furthermore, port
isn't defined either.

-- 
Neil Cerutti



More information about the Python-list mailing list