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


Groups > comp.lang.python > #60446

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

From Malte Forkel <malte.forkel@berlin.de>
Subject How to determine whether client and server are on the same host
Date 2013-11-25 20:35 +0100
Newsgroups comp.lang.python
Message-ID <mailman.3191.1385408149.18130.python-list@python.org> (permalink)

Show all headers | View raw


Hi,

I have a Python application that communicates with a server via telnet.
Host and port of the server are supplied by the user when the
application is started.

How can I determine from within the application whether the server's
host actually is the local host? (In that case I could implement an
operation not available in the telnet-based protocol by directly
accessing the local filesystem.)

Sounds like there should be an obvious solution. Unfortunately, I
haven't found it yet :-)

Malte

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


Thread

How to determine whether client and server are on the same host Malte Forkel <malte.forkel@berlin.de> - 2013-11-25 20:35 +0100

csiph-web