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


Groups > comp.lang.python > #3998

Re: sockets: bind to external interface

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail
From Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de>
Newsgroups comp.lang.python
Subject Re: sockets: bind to external interface
Date Mon, 25 Apr 2011 23:14:22 +0200
Organization A newly installed InterNetNews server
Message-ID <ip4o7g$gcc$1@r03.glglgl.eu> (permalink)
References <k4vg88-0tt.ln1@svn.schaathun.net> <mailman.815.1303760950.9059.python-list@python.org> <ra1h88-e0u.ln1@svn.schaathun.net>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
User-Agent Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8
In-Reply-To <ra1h88-e0u.ln1@svn.schaathun.net>
Lines 17
NNTP-Posting-Date 25 Apr 2011 23:20:04 CEST
NNTP-Posting-Host 1f9535e7.newsspool2.arcor-online.net
X-Trace DXC=k6TdSbl;4U=^cW`WBF>WQ<A9EHlD;3Yc24Fo<]lROoR18kF<OcfhCO;UU_gF>4@9e2K8FCa6^2FW2OLF_]FfFg8?ijeV\Q:ZI78
X-Complaints-To usenet-abuse@arcor.de
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3998

Show key headers only | View raw


Am 25.04.2011 22:14 schrieb Hans Georg Schaathun:

> On Tue, 26 Apr 2011 05:49:07 +1000, Chris Angelico
>    <rosuav@gmail.com>  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 ...

Generally, it seems better to use '' instead of '0.0.0.0' in this case 
in order to stay compatible with other address families, especially INET6.


Thomas

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


Thread

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