Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52887

Re: How to send broadcast IP address to network?

From Neil Cerutti <neilc@norwich.edu>
Newsgroups comp.lang.python
Subject Re: How to send broadcast IP address to network?
Date 2013-08-23 13:05 +0000
Organization Norwich University
Message-ID <b7p51fFhkssU2@mid.individual.net> (permalink)
References <659fa544-4fd6-406c-ad44-aa155e2c0e40@googlegroups.com> <b0ac44b7-8680-4bf3-a381-b010ee254cdf@googlegroups.com>

Show all headers | View raw


On 2013-08-23, lightaiyee@gmail.com <lightaiyee@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to send broadcast IP address to network? lightaiyee@gmail.com - 2013-08-23 05:32 -0700
  Re: How to send broadcast IP address to network? lightaiyee@gmail.com - 2013-08-23 05:36 -0700
    Re: How to send broadcast IP address to network? Neil Cerutti <neilc@norwich.edu> - 2013-08-23 13:05 +0000
  Re: How to send broadcast IP address to network? Chris Angelico <rosuav@gmail.com> - 2013-08-24 00:11 +1000
  Re: How to send broadcast IP address to network? Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2013-08-24 13:33 +0200

csiph-web