Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3995
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.020 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'socket': 0.05; 'correspond': 0.07; 'involves': 0.07; 'bind': 0.09; 'interfaces': 0.12; 'server,': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'common.': 0.16; 'subject:interface': 0.16; 'wanted.': 0.16; 'tue,': 0.20; 'work,': 0.20; 'header:In-Reply-To:1': 0.22; 'wonder': 0.24; 'there.': 0.26; "i'm": 0.26; 'chris': 0.27; 'message- id:@mail.gmail.com': 0.28; 'external': 0.29; 'server': 0.29; 'assuming': 0.29; 'all.': 0.30; 'binding': 0.31; 'to:addr:python- list': 0.32; '...': 0.32; 'sometimes': 0.33; 'there': 0.35; 'addresses': 0.36; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'less': 0.38; 'port': 0.38; 'used': 0.38; 'though': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; "it's": 0.40; 'header:Received:5': 0.40; 'address': 0.61; '2011': 0.62; 'care': 0.67; '26,': 0.68; 'traffic': 0.71; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84; 'aka': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=R3CE2oNqjYV9L9detSPNmmA+/3zoykdkSog4bSEHYpw=; b=hp5SIec1hZDeqQZ6uk06/m61Ji8SseHcDWz5mok0r6fkSKUSWcmrzBmA7N50GIoVAC h/3rSxdz2Nz9l3dZDH4Y75K2fe3dPz4YerYe4z3LIGNF/Xnu6WUqzohwFX9l+N5C40NM Hi9ITttvgEwR9lA+0lR1g1iQlGRQ4LmA4Rim4= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=tSFEW+isb9StRs5yKWGrqPNnsW2u0Esulipt0Lq1sqhKitWEaDDtA1xYcRfnECzurW NwmmZELZgi5Val5JGrIBcwA1GDAKJ9FFeGZFFwtrBUPepR9cnT+1vTAXhLQtus+O9osB Kv14F8rDTs5xtouWvT7tyPOea5u7kZET1h074= |
| MIME-Version | 1.0 |
| In-Reply-To | <ra1h88-e0u.ln1@svn.schaathun.net> |
| References | <k4vg88-0tt.ln1@svn.schaathun.net> <mailman.815.1303760950.9059.python-list@python.org> <ra1h88-e0u.ln1@svn.schaathun.net> |
| Date | Tue, 26 Apr 2011 06:30:59 +1000 |
| Subject | Re: sockets: bind to external interface |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.816.1303763462.9059.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1303763462 news.xs4all.nl 81483 [::ffff:82.94.164.166]:50297 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:3995 |
Show key headers only | View raw
On Tue, Apr 26, 2011 at 6:14 AM, Hans Georg Schaathun <hg@schaathun.net> wrote: > : The way you talk of "the" external interface, I'm assuming this > : computer has only one. Is there a reason for not simply binding to > : INADDR_ANY aka 0.0.0.0? > > Ah. That's what I really wanted. Thanks a lot. I wonder why that > was not mentioned in the tutorial I used ... If you don't care what port you use, you don't need to bind at all. That may be why it's not mentioned - the classic TCP socket server involves bind/listen/accept, and the classic TCP client has just connect; bind/connect is a lot less common. Incidentally, interfaces don't have to correspond 1:1 to network cards. At work, we have a system of four IP addresses for each server, even though it has only one NIC - it's used for traffic management and routing. Binding to a specific address is sometimes important there. Chris Angelico
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
sockets: bind to external interface Hans Georg Schaathun <hg@schaathun.net> - 2011-04-25 20:37 +0100
Re: sockets: bind to external interface Chris Angelico <rosuav@gmail.com> - 2011-04-26 05:49 +1000
Re: sockets: bind to external interface Jean-Paul Calderone <calderone.jeanpaul@gmail.com> - 2011-04-25 13:13 -0700
Re: sockets: bind to external interface Hans Georg Schaathun <hg@schaathun.net> - 2011-04-25 21:14 +0100
Re: sockets: bind to external interface Hans Georg Schaathun <hg@schaathun.net> - 2011-04-25 21:24 +0100
Re: sockets: bind to external interface Chris Angelico <rosuav@gmail.com> - 2011-04-26 07:21 +1000
Re: sockets: bind to external interface Chris Angelico <rosuav@gmail.com> - 2011-04-26 06:30 +1000
Re: sockets: bind to external interface Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-04-25 23:18 +0200
Re: sockets: bind to external interface Chris Angelico <rosuav@gmail.com> - 2011-04-26 07:50 +1000
Re: sockets: bind to external interface Hans Georg Schaathun <hg@schaathun.net> - 2011-04-26 06:20 +0100
Re: sockets: bind to external interface Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-04-25 23:14 +0200
Re: sockets: bind to external interface Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-04-26 11:24 +0200
csiph-web