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


Groups > comp.lang.python > #60446 > unrolled thread

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

Started byMalte Forkel <malte.forkel@berlin.de>
First post2013-11-25 20:35 +0100
Last post2013-11-25 20:35 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

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

FromMalte Forkel <malte.forkel@berlin.de>
Date2013-11-25 20:35 +0100
SubjectHow to determine whether client and server are on the same host
Message-ID<mailman.3191.1385408149.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web