Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52894
| References | <659fa544-4fd6-406c-ad44-aa155e2c0e40@googlegroups.com> |
|---|---|
| Date | 2013-08-24 00:11 +1000 |
| Subject | Re: How to send broadcast IP address to network? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.165.1377267420.19984.python-list@python.org> (permalink) |
On Fri, Aug 23, 2013 at 10:32 PM, <lightaiyee@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? You can't establish a TCP socket with a broadcast address. That just doesn't work. Can you please show a whole lot more context so we can see what's happening here? Thanks! ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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