I see a “local hostname is not in network database” error in my server logs

Matt
Matt
  • Updated
(rlm) Web server starting on port 5054
(rlm) Cannot bind Web Server to port 5054, exiting
(rlm) Local hostname is not in network database

If your RLM server is running on macOS and you see an error like the one above in your RLM server log, there are a few possible solutions:

  • Enable file sharing
  • Set the machine’s Hostname
  • Edit the Hosts file

 

ENABLE FILE SHARING

The first and easiest solution is to enable file sharing on the server

  1. Open the System Preferences
  2. Click Sharing
  3. (Unlock, if necessary, and) Check the box next to File Sharing
  4. Reboot

SET THE HOSTNAME

The second solution involves changing the machine’s local hostname

  1. Open a Terminal window
  2. Enter the command: sudo scutil --set LocalHostname [hostname], where [hostname] is the name of your machine
  3. Enter the command: dscacheutil -flushcache
  4. Reboot

EDIT THE HOSTS FILE

Be sure you know what you are doing, as this may have adverse effects on your machine if done incorrectly

  1. Open the /etc/hosts file in a text editor
  2. Add a line containing your machine’s static IP address and its hostname, as such: IP Hostname
  3. Save the file
  4. Reboot

Was this article helpful?

/

Comments

0 comments

Article is closed for comments.