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

References <l708pt$r5b$1@ger.gmane.org> <7wfvqkrqvb.fsf@benfinney.id.au> <l739kk$akt$1@news.albasani.net>
Date 2013-11-27 10:15 +1100
Subject Re: How to determine whether client and server are on the same host
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3261.1385507758.18130.python-list@python.org> (permalink)

Show all headers | 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