Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4028
| Date | 2011-04-26 11:24 +0200 |
|---|---|
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
| Subject | Re: sockets: bind to external interface |
| References | <k4vg88-0tt.ln1@svn.schaathun.net> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.829.1303809867.9059.python-list@python.org> (permalink) |
Hans Georg Schaathun wrote: > Is there a simple way to find the external interface and bind a > socket to it, when the hostname returned by socket.gethostname() > maps to localhost? > > What seems to be the standard ubuntu configuration lists the local > hostname with 127.0.0.1 in /etc/hosts. (I checked this on two ubuntu > boxen, on only one of which I am root.) Thus, the standard solution > of binding to whatever socket.gethostname() returns does not work. > > Has anyone found a simple solution that can be administered without > root privileges? I mean simpler than passing the ip address > manually :-) > > TIA > Hi, Use the address 0.0.0.0 JM
Back to comp.lang.python | Previous | Next — Previous 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