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


Groups > comp.lang.python > #60644

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

From Malte Forkel <malte.forkel@berlin.de>
Subject Re: How to determine whether client and server are on the same host
Date 2013-11-27 23:32 +0100
References <l708pt$r5b$1@ger.gmane.org> <7wfvqkrqvb.fsf@benfinney.id.au> <l739kk$akt$1@news.albasani.net> <CAPTjJmq3M4iYE-M139h+5VVj_j=Pc0eyyE-_qUMmu4aDq+1afQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3325.1385592004.18130.python-list@python.org> (permalink)

Show all headers | View raw


Am 27.11.2013 00:15, schrieb Chris Angelico:
> 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.
> 
The server runs Linux, the client might be used under Windows as well.

I can't modify the server. So there is no way to create a file
/tmp/_this_is_malte_forkel_on_his_server_9515343 or to check whether it
exists on the server side.

Back to comp.lang.python | Previous | NextPrevious 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