Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to build a server with minidlna installed. Installation worked fine, but having it run on startup is more problematic. I added minidlna to my rc.local, and now on boot I get log messages stating:

minidlna.c:132: error: bind(http): Address already in use minidlna.c:1004: fatal: Failed to open socket for HTTP. EXITING

I have tried setting the bind device (eth0), and changing the port, which is now 8300 instead of 8200. All in vain. And, even more unsettling: when I start minidlna manually from the terminal, it runs just fine. This makes me suspect the config is not the problem; I just cannot figure out what is. Could somebody give me a suggestion?

Thanks a million!


share|improve this question

Although networking is started before rc.local runs, networking may not yet be ready (e.g. waiting for an IP address from DHCP). An easy work around may be adding

sleep 2m

before the actual command starting minidlna. Of course you can adjust the time "2m" to an amount suitable for your setup.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.