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

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
horndog
550 Permission denied
Posts: 27
Joined: 2010-06-13 21:27
First name: Stuart
Last name: Kay

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

#1 Post by horndog » 2010-08-15 22:55

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?

User avatar
boco
Contributor
Posts: 26913
Joined: 2006-05-01 03:28
Location: Germany

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

#2 Post by boco » 2010-08-15 22:58

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.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

horndog
550 Permission denied
Posts: 27
Joined: 2010-06-13 21:27
First name: Stuart
Last name: Kay

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

#3 Post by horndog » 2010-08-15 23:14

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.

User avatar
boco
Contributor
Posts: 26913
Joined: 2006-05-01 03:28
Location: Germany

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

#4 Post by boco » 2010-08-16 00:07

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.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

horndog
550 Permission denied
Posts: 27
Joined: 2010-06-13 21:27
First name: Stuart
Last name: Kay

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

#5 Post by horndog » 2010-08-16 03:12

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.

User avatar
botg
Site Admin
Posts: 35508
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

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

#6 Post by botg » 2010-08-16 06:27

There's a section in the Network Configuration guide which explains in detail why routers tampering with the data are a bad idea.

horndog
550 Permission denied
Posts: 27
Joined: 2010-06-13 21:27
First name: Stuart
Last name: Kay

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

#7 Post by horndog » 2010-08-23 00:32

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.

User avatar
boco
Contributor
Posts: 26913
Joined: 2006-05-01 03:28
Location: Germany

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

#8 Post by boco » 2010-08-23 00:40

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.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

horndog
550 Permission denied
Posts: 27
Joined: 2010-06-13 21:27
First name: Stuart
Last name: Kay

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

#9 Post by horndog » 2010-08-23 00:47

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!

User avatar
boco
Contributor
Posts: 26913
Joined: 2006-05-01 03:28
Location: Germany

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

#10 Post by boco » 2010-08-23 00:52

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.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

horndog
550 Permission denied
Posts: 27
Joined: 2010-06-13 21:27
First name: Stuart
Last name: Kay

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

#11 Post by horndog » 2010-08-23 01:50

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.

Post Reply