Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'linux,': 0.07; 'modify': 0.07; 'subject:same': 0.07; 'interpreted': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'skip:/ 10': 0.09; 'runs': 0.10; 'subject:How': 0.10; 'windows': 0.15; '"is': 0.16; 'inability': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'side.': 0.16; 'header :User-Agent:1': 0.23; 'exists': 0.24; 'fairly': 0.24; 'server.': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'safely': 0.31; 'file': 0.32; 'run': 0.32; 'running': 0.33; 'subject:the': 0.34; 'could': 0.34; "can't": 0.35; 'but': 0.35; 'there': 0.35; 'server': 0.38; 'to:addr:python- list': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'received:79': 0.64; 'gains': 0.84; 'safe.': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Malte Forkel Subject: Re: How to determine whether client and server are on the same host Date: Wed, 27 Nov 2013 23:32:35 +0100 References: <7wfvqkrqvb.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: p4fc96369.dip0.t-ipconnect.de User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1385592004 news.xs4all.nl 15955 [2001:888:2000:d::a6]:48177 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60644 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.