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


Groups > comp.lang.python > #60550

Re: How to determine whether client and server are on the same host

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.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.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'linux,': 0.07; 'subject:same': 0.07; 'interpreted': 0.09; 'skip:/ 10': 0.09; 'windows,': 0.09; 'runs': 0.10; 'subject:How': 0.10; 'contribute': 0.11; '"is': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inability': 0.16; 'presume': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'fairly': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'safely': 0.31; 'file': 0.32; 'run': 0.32; 'running': 0.33; 'subject:the': 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'server': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'called': 0.40; 'easy': 0.60; 'gains': 0.84; 'safe.': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=V5TiFDr4JKxIvv0SpoZCbfP1zNktZ8vkEO5jBL80kZc=; b=Ih1yaO2xf93CaIxRmp1SDxVl4A3Oq+AAkbGXpmwtlpCPhhl4OfHw5yDNWw1uwxWWwY NCETkng23xAATDATJWF1ga4rBPi1nZU7Tm5eAPd4/nLyiuHW9Zu/bGtWSAU+NH/aciMq 4uVhxhmyGztu2ZPRPRsFwazzsb0RvHlcHVuyj/3RnG4M08gma0uyWM+pIXoee7hOTF8f RolUnMMIXeKO21Zu7pzjq4XNo0IsYoP+veazWS6KlpVtpf97B6rNNn5ayxt1PrYQyEF8 2AC9NknjPIychfk79k/neAdVL2sdj/8Xp5BxK7uj1lyRnUshzdOPBTVBBVmW03LkyA7m tlDg==
MIME-Version 1.0
X-Received by 10.68.160.69 with SMTP id xi5mr1856949pbb.168.1385507754073; Tue, 26 Nov 2013 15:15:54 -0800 (PST)
In-Reply-To <l739kk$akt$1@news.albasani.net>
References <l708pt$r5b$1@ger.gmane.org> <7wfvqkrqvb.fsf@benfinney.id.au> <l739kk$akt$1@news.albasani.net>
Date Wed, 27 Nov 2013 10:15:53 +1100
Subject Re: How to determine whether client and server are on the same host
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3261.1385507758.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1385507758 news.xs4all.nl 15872 [2001:888:2000:d::a6]:48078
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60550

Show key headers only | View raw


On Wed, Nov 27, 2013 at 10:08 AM, Walter Hurry <walterhurry@lavabit.com> wrote:
> Easy enough with ifconfig and grep. I presume that there is also a way on
> Windows, but others will have to contribute that.

Since the server runs Linux, inability to run /sbin/ifconfig could
safely be interpreted as "we're not running on the server". But I
think this actually gains little over "is there a file called
/tmp/_this_is_malte_forkel_on_his_server_9515343_", which would be
fairly safe.

ChrisA

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


Thread

Re: How to determine whether client and server are on the same host Walter Hurry <walterhurry@lavabit.com> - 2013-11-26 23:08 +0000
  Re: How to determine whether client and server are on the same host Chris Angelico <rosuav@gmail.com> - 2013-11-27 10:15 +1100
  Re: How to determine whether client and server are on the same host Malte Forkel <malte.forkel@berlin.de> - 2013-11-27 23:32 +0100

csiph-web