Page 1 of 1

"http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-15 22:55
by horndog
When accessing "http://ip.filezilla-project.org/ip.php" from the web browser on my server, where Filezilla server resides, I get 127.0.0.1. the server is on a VM behind a nats router. When I access that address from my home network it downloads a file called "ip.php". After opening it reads 127.0.0.1. When I use any other "whats my IP" site I get the right IP.

My question is, how can this be of any use. Using this feature on FZ server passive mode?

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-15 22:58
by boco
It will reveal the correct IP only to FileZilla products to prevent third-party abuse. In other words: You see 127.0.0.1 because your browser is neither FileZilla nor FileZilla Server.

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-15 23:14
by horndog
boco wrote:It will reveal the correct IP only to FileZilla products to prevent third-party abuse. In other words: You see 127.0.0.1 because your browser is neither FileZilla nor FileZilla Server.
Thats fine, but it doesn't work on my server passive setup. The only thing that works is "default".
18:07:32 Command: MLSD
18:07:32 Response: 150 Connection accepted
18:07:32 Response: 226 Transfer OK
18:07:32 Status: Directory listing successful
When I use my domain name (Dynamic IP) It doesn't work either. I get this:
Server sent passive reply with unroutable address. Using server address instead.
Error: Failed to retrieve directory listing
When I use "http://ip.filezilla-project.org/ip.php" I get this:
18:05:56 Command: MLSD
18:06:06 Response: 425 Can't open data connection.
18:06:06 Error: Failed to retrieve directory listing
This is not a big problem because it's a private FTP, but I would like it to work when my IP changes.

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-16 00:07
by boco
That's because you have a router (or a firewall along the way) which tampers with your FTP traffic (it's switching IPs, and sux at this!). Usually these devices assume wrong configuration. That's why Default works, though it's wrong.

Usually switching to FTPES or using an FTP port other than 21 removes this problem.

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-16 03:12
by horndog
boco wrote:That's because you have a router (or a firewall along the way) which tampers with your FTP traffic (it's switching IPs, and sux at this!). Usually these devices assume wrong configuration. that's why Default works, though it's wrong.

Usually switching to FTPES or using an FTP port other than 21 removes this problem.
Thanks, Ive long suspected my router as the culprit. I'll use a different listening port to test.

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-16 06:27
by botg
There's a section in the Network Configuration guide which explains in detail why routers tampering with the data are a bad idea.

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-23 00:32
by horndog
After much fiddling around with all the different setups (with no success) I found the answer. All I did was add the listening port after my domain name in passive mode settings.

example.com:21 works! example.com does not work.

http://ip.filezilla-project.org/ip.php:21 works, http://ip.filezilla-project.org/ip.php does not work.

Must be a bug in FileZilla server.

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-23 00:40
by boco
http://ip.filezilla-project.org/ip.php:21 is not valid. I guess FZ Server falls back to Default in this case. Same thing as above.

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-23 00:47
by horndog
boco wrote:http://ip.filezilla-project.org/ip.php:21 is not valid. I guess FZ Server falls back to Default in this case. Same thing as above.
Maybe it's time to revisit the FZ code. My guess is there is a bug with the listening port algorithm.

In any case It works for me, do as you please!

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-23 00:52
by boco
Why? http://ip.filezilla-project.org/ip.php:21 is not a valid address. Besides from a syntax error, there is no service listening there. The valid IP grab is at http://ip.filezilla-project.org:80/ip.php.

Re: "http://ip.filezilla-project.org/ip.php" shows 127.0.0.1

Posted: 2010-08-23 01:50
by horndog
boco wrote:Why? http://ip.filezilla-project.org/ip.php:21 is not a valid address. Besides from a syntax error, there is no service listening there. The valid IP grab is at http://ip.filezilla-project.org:80/ip.php.
Thats the question. It a good place to start looking for answers.