Page 1 of 1

EADDRINUS - Local adress in use

Posted: 2022-12-07 19:34
by HenriqueBM
I am setting up an FTP server in linux with host "localhost" and port "14148". However this is what appears on the logs right off the bat:

Status Successfully connected to server localhost:14148.
Error Couldn't bind on XXX.XX.XX.XXX:21. Reason: EADDRINUSE - Local address in use. Retrying in 1 seconds.
Error Couldn't bind on XXX.XX.XX.XXX:21. Reason: EADDRINUSE - Local address in use. Retrying in 1 seconds.
Error Couldn't bind on XXX.XX.XX.XXX:21. Reason: EADDRINUSE - Local address in use. Retrying in 1 seconds.
...
...

and it keeps on going forever like this (the Xs hide my ip).

I sent the command "netstat -tulpn" on the terminal and it showed port 0.0.0.0:21, 0.0.0.0:22, :::21 and :::22 are all currently LISTENING. It didn't show their program name.

Re: EADDRINUS - Local adress in use

Posted: 2022-12-08 03:06
by boco
Simply try to connect to the ominous service occupying the socket. Linux has sometimes regular FTP and SFTP services running, by default (ProFTPd, vsftpd, OpenSSH etc.).

Re: EADDRINUS - Local adress in use

Posted: 2022-12-08 08:34
by botg
Note that port 14148 is the default administration port of FileZilla Server. It should not be configured as FTP port. Please check the listeners you have configured in FileZilla Server.

Re: EADDRINUS - Local adress in use

Posted: 2022-12-12 20:44
by HenriqueBM
botg wrote:
2022-12-08 08:34
Note that port 14148 is the default administration port of FileZilla Server. It should not be configured as FTP port. Please check the listeners you have configured in FileZilla Server.
My listeners are standard. Their adresses are:
0.0.0.0
::
(my ip)

All on port 21 and following protocol "Explicit FTP over TLS and insecure plain FTP"

Re: EADDRINUS - Local adress in use

Posted: 2022-12-13 00:30
by boco
(my ip)
Remove that. It's included in the first two, already.

Re: EADDRINUS - Local adress in use

Posted: 2022-12-13 20:06
by HenriqueBM
boco wrote:
2022-12-13 00:30
(my ip)
Remove that. It's included in the first two, already.
Thanks, that solved this problem