Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have installed Proftp according to the manuals. Why I still get the error “Failed binding to 0.0.0.0, port 21: Address already in use”?

0
Posted

I have installed Proftp according to the manuals. Why I still get the error “Failed binding to 0.0.0.0, port 21: Address already in use”?

0

You’ll find Inetd installed on most systems. In most cases inetd is running on these systems. Inetd takes care of the incoming packages on the ftp port and delegates them to the ftp-server. To do this delegation inetd has to bind port 21 on the ip-address 0.0.0.0. There is no way for another daemon to bind this port again. To solve this problem you have to edit the inetd configuration file in /etc. Just comment out the line which tells inetd to listen on the ftp port and restart inetd. Now you have to restart proftpd and check the logfiles. If inetd was the reason why proftpd was not able to bind the port then there will be no error anymore. Otherwise there is another daemon which binds the ftp port. This is an example how the line in your inetd configuration file could look like.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.