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?

Path csiph.com!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Neil Cerutti <neilc@norwich.edu>
Newsgroups comp.lang.python
Subject Re: How to send broadcast IP address to network?
Date 23 Aug 2013 13:05:51 GMT
Organization Norwich University
Lines 16
Message-ID <b7p51fFhkssU2@mid.individual.net> (permalink)
References <659fa544-4fd6-406c-ad44-aa155e2c0e40@googlegroups.com> <b0ac44b7-8680-4bf3-a381-b010ee254cdf@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Trace individual.net 8KrC9TDkHJLDIfd75iPUOQfnRFesK8U2b4ObuWTg5/SmB3eeVn
Cancel-Lock sha1:EtxzhB3G7TJGZgXOGU8saH2gHb0=
User-Agent slrn/0.9.9p1/mm/ao (Win32)
Xref csiph.com comp.lang.python:52887

Show key headers only | 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