FubarDevelopment / FtpServer

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

Configure multiple command ports #151

Closed BrianAtAFG closed 1 year ago

BrianAtAFG commented 1 year ago

The configuration seems to only support a single command port. Is it be possible to listen on multiple command ports concurrently?

fubar-coder commented 1 year ago

No, it's not supported. Maybe you can run multiple instances?

BrianAtAFG commented 1 year ago

No, it's not supported. Maybe you can run multiple instances?

That may be my workaround. Do you foresee any issues with instantiating two servers in the same process? Or will I need to have 2 different processes?

Would you be interested in a pull request that made a change to allow multiple ports? Or am I unique with this requirement?

fubar-coder commented 1 year ago

You should be able to instantiate two servers by using two different IServiceCollection's.