Subject: Re: bug#27009: 25.1; Tramp stuck on wrong host

From: [email-masked]
Date: Mon, 22 May 2017 08:16:52 -0400

retitle 27009 Tramp doesn't distinguish between connections differing only by port number
tags 27009 confirmed
quit

Michael Albinus <[email-masked]> writes:
>
> Tramp is almost agnostic to port numbers. It uses them for the command
> raised for connecting, but everywhere else it ignores them. This happens
> especially in managing internal data, like the name of the connection
> buffer or access to cached values.
>
> As a result, two remote file names are handled as identical if they
> differ only in their port numbers. See also the todo entry in tramp.el:
>
> ;; * Use also port to distinguish connections.  This is needed for
> ;;   different hosts sitting behind a single router (distinguished by
> ;;   different port numbers).  (Tzvi Edelman)
>
> I know, this is not satisfying. If time permits, I'll work on this next
> time. Unfortunately, there's no trivial fix.