Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.043 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; '*not*': 0.05; ':-)': 0.07; 'bind': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'root,': 0.16; 'subject:interface': 0.16; 'simpler': 0.19; 'tue,': 0.20; 'header :In-Reply-To:1': 0.22; 'manually': 0.22; 'parse': 0.23; "i'm": 0.26; 'chris': 0.27; 'specifically': 0.27; 'message- id:@mail.gmail.com': 0.28; 'external': 0.29; 'assuming': 0.29; 'binding': 0.31; 'anyone': 0.31; 'to:addr:python-list': 0.32; 'there': 0.35; 'way.': 0.37; 'received:209.85': 0.37; 'run': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'solution': 0.40; 'header:Received:5': 0.40; 'simple': 0.60; 'address': 0.61; '2011': 0.62; '26,': 0.68; '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=sXfBOIKrk/8YhyH9+yBxDqjQ0+IHPN7Hsx4+WLurhdo=; b=MAxx6jfhN8GmBezm8/A8UXdDCBa4lfrzktsGtXe5MA+/d5rSWop0aPHjgX+4CccAua 92NKS7E5xoNoAvxEm+iSpELsWrm9UgPcfdJv+SvNivgXivwFAU1ASXGFz/AI2TiQlx3D eC9GJKsJn+V+s5yoOZ6oCZqer3TXuxiEYXSYo= 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=qQTqWTH7/c5DOJcVC5J5U7v8oh7M7mnJaZ7xInAjNoNiGi3oYXYyInrzsZS6W3ZGSh MwP8w5RwVYGKmZICYocTXkAJpdpuYXuvxSv7SNlrmrlWX0wE6g45yhQGJb/TQZ53JQhc NKqXpXQSw467PREPDP4dOvzMyhYpwV0CBuDcc= MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 26 Apr 2011 05:49:07 +1000 Subject: Re: sockets: bind to external interface From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1303760951 news.xs4all.nl 41117 [::ffff:82.94.164.166]:39222 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3991 On Tue, Apr 26, 2011 at 5:37 AM, Hans Georg Schaathun wr= ote: > Has anyone found a simple solution that can be administered without > root privileges? =A0I mean simpler than passing the ip address > manually :-) You can run 'ifconfig' without being root, so there must be a way. At very worst, parse ifconfig's output. 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? Do you specifically need to *not* bind to 127.0.0.1? Chris Angelico