FubarDevelopment / FtpServer

Portable FTP server written in .NET
http://fubardevelopment.github.io/FtpServer/
MIT License
473 stars 161 forks source link

HELP: Helping with passivePorts and address #98

Closed cris88 closed 2 years ago

cris88 commented 4 years ago

Hello. I'm trying to mount an custom implementation of FTPServer using your nuget on a Docker server but I'm facing a lot of problems. One of them is that I want to set this passive address to public endpoint and ports. How can I do this?

I'm trying to: services.Configure(opt => new SimplePasvOptions() { PasvMinPort = 12000, PasvMaxPort = 12020, PublicAddress = System.Net.IPAddress.Parse("###publicaddress###") });

This doesn't work...

Thanks.

unknownguy commented 2 years ago

Did you manage to make this work in docker?

fubar-coder commented 2 years ago

The public address is only given to the client when via EPSV, not PASV, because PASV only returns the port - not the IP address.