The given address is not yours #250
-
Hi, I use this ftp-srv 4.4.0 module integrated into my App, once deployed in a server for staging I cannot figure out why I get an error "500 The given address is not yours" no matter Active Mode or Passive Mode. I deployed the ftp server in the PORT 2121, here the part of the communication: 02/04/2021 15:07:33 Sent> PORT 192,168,1,13,211,113 192.168.1.13 is my local ip address, yes, I'm behind a router, but I can connect to other FTP Servers in Internet in Active mode with no problem. Any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hi Andre - you at receiving that error because the server is trying to bind it’s address to your local IP. The PORT command tells the server to use that address to listen for incoming connections, if your application is running on a computer that does not have The way you can mitigate this is to make sure you are passing in the I can help you further if you post your config here and we can get to the bottom of it. |
Beta Was this translation helpful? Give feedback.
-
Sorry @matt-forster, just tried to supply the whole information. Let me know if I misunderstood your request. |
Beta Was this translation helpful? Give feedback.
-
It looks good, just haven't had time to dissect it. One thing I did notice, is that your |
Beta Was this translation helpful? Give feedback.
It looks good, just haven't had time to dissect it.
One thing I did notice, is that your
FTP_PASV_URL
is set tolocalhost
. When you are behind NAT - the address that is used must be the IP address that the client is interacting with, which would be the WAN-facing IP, not the localhost address. That will 100% cause the error you are receiving - as to why Beyond doesn't get the error, I have no idea. It could be because it actually supports thelocalhost
hostname and does not translate it to an IP.