From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Fri, 26 Jun 2015 10:29:29 +0200." <20150626082929.GA2641@ananda.local> References: <20150625172536.GA1214@ananda.local> <20150625182812.9A0E9B827@mail.bitblocks.com> <20150625195149.GA2779@ananda.local> <20150625201653.49F79B82A@mail.bitblocks.com> <20150626082214.GA2410@ananda.local> <20150626082929.GA2641@ananda.local> Date: Fri, 26 Jun 2015 01:52:25 -0700 From: Bakul Shah Message-Id: <20150626085225.977A7B827@mail.bitblocks.com> Subject: Re: [9fans] ftpfs shows empty /n/ftp after login Topicbox-Message-UUID: 5ba3e91c-ead9-11e9-9d60-3106f5b1d025 On Fri, 26 Jun 2015 10:29:29 +0200 "Nils M Holm" wrote: > On 2015-06-26T10:22:14+0200, Nils M Holm wrote: > > Looks like ftpfs and ftpd cannot agree on a port for passive mode: > > Of course, here's the problem: > > > PASV > > 227 Entering passive mode (127,0,0,1,212,96) > ^^^^^^^^^ > > passive mode connect to /net/tcp!127.0.0.1!54368 failed: connection refused > > PORT 10,0,2,15,131,19 > > 500 Illegal PORT range rejected. > > Ftpd announces a port on localhost which, of course, ftpfs is unable > to open. What ftpfs needs is a port on 10.0.2.2 (the guest address of > QEMU). I just tried this on an old qemu plan9 image. I tried connecting to the hosts' external address, not 10.0.2.2 and it all worked.