From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Strange tramp behaviour when using a mobile access point Date: Mon, 21 Nov 2016 21:20:32 +0100 Message-ID: <20161121202032.GA27769@tuxteam.de> References: <874m30dave.fsf@free.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1479759670 7437 195.159.176.226 (21 Nov 2016 20:21:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2016 20:21:10 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 21 21:21:06 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8v5N-0001Wh-CJ for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2016 21:21:05 +0100 Original-Received: from localhost ([::1]:51619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8v5Q-0002Ie-WD for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2016 15:21:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8v51-0002IS-Jk for help-gnu-emacs@gnu.org; Mon, 21 Nov 2016 15:20:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8v4y-0006hN-9F for help-gnu-emacs@gnu.org; Mon, 21 Nov 2016 15:20:43 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:57082 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8v4x-0006gy-JF for help-gnu-emacs@gnu.org; Mon, 21 Nov 2016 15:20:39 -0500 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1c8v4q-0007K4-RA for help-gnu-emacs@gnu.org; Mon, 21 Nov 2016 21:20:32 +0100 In-Reply-To: <874m30dave.fsf@free.fr> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111758 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Nov 21, 2016 at 06:02:45PM +0100, Julien Cubizolles wrote: > I'm using tramp to connect to a ftp server (ftpperso.free.fr). It works > fine from my home computer, using through a landline. > > When commuting by train, I have: > * my mobile phone (Android) providing a wifi access point > * my laptop using this wifi connection > I can access then access the ftp server in a web browser but tramp gives > me a never ending list of: > > Opening FTP connection to ftpperso.free.fr...done > Logging in as user mylogin@ftpperso.free.fr...done > Getting PWD...done > Doing CD...done > Listing /ftp:ftpperso.free.fr:/... [2 times] > Opening FTP connection to ftpperso.free.fr...done > Logging in as user mylogin@ftpperso.free.fr...done > Getting PWD...done > Doing CD...done > > and never connects. It looks as if the data connection from ftp isn't coming back (by default, ftp opens a second connection to transfer the data to you, that would be the case for the results of the `ls' command). This can happen if you are behind an NAT: unless the NAT takes special measures, the connection request will end up nowhere. Try setting the variable `ange-ftp-try-passive-mode' to t (you can set this variable through `configure'. Perhaps it helps. Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlgzVxAACgkQBcgs9XrR2kbOawCeOhQekb+Wju7cl+TuM/UJZf8t 3dMAn0/7yfz6Llxf1TA7KIGWT7yz+eFq =vJ2z -----END PGP SIGNATURE-----