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


Groups > comp.lang.python > #52885

Re: How to send broadcast IP address to network?

Newsgroups comp.lang.python
Date 2013-08-23 05:36 -0700
References <659fa544-4fd6-406c-ad44-aa155e2c0e40@googlegroups.com>
Message-ID <b0ac44b7-8680-4bf3-a381-b010ee254cdf@googlegroups.com> (permalink)
Subject Re: How to send broadcast IP address to network?
From lightaiyee@gmail.com

Show all headers | View raw


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.

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