FubarDevelopment / FtpServer

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

Bind on 0.0.0.0 #65

Closed imclint21 closed 5 years ago

imclint21 commented 5 years ago

Hi,

When I listen on 0.0.0.0 it throw an error, do you know the reason ?

IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address

You need to change public string ServerAddress { get; set; } to a IPAddress to add the possibility to use IPAddress.Any or simply add a wildcard like *

Thanks

fubar-coder commented 5 years ago

I'm unable to reproduce this problem. I remember having problems with some older versions of the FTP server, but those should be fixed in 2.2.1.

I tested it with both Linux and Windows, with the following commands:

imclint21 commented 5 years ago

Do you have tried the library directly ?

fubar-coder commented 5 years ago

Will do

fubar-coder commented 5 years ago

I created a program (same as the quickstart sample) and used the library in version 2.2.1. Everything works as expected - both under Linux and Windows.

Do you use .NET Core, .NET Framework, or Mono on Windows or Linux?

imclint21 commented 5 years ago

.Net core / windows and linux, please send me the snippet that you use to bind on 0.0.0.0

fubar-coder commented 5 years ago

Here's a test project that binds the server to 0.0.0.0 (without logging).

TestFtpServer.zip

PS: You probably need to run the FTP Server with sudo under Linux.

imclint21 commented 5 years ago

Yes I confirm that it works, on linux normally I'm already in root, I will try and keep you informed

imclint21 commented 5 years ago

We use it for https://clicksguard.io and it works fine !

image