Skip to content
José Valim edited this page May 25, 2023 · 8 revisions

Q: How to address the "Your hostname does not resolve to a loopback address" message?

macOS

This may be caused by a faulty hostname configuration. You can verify if that's the case by opening the macOS Terminal application:

$ scutil --get HostName

If it prints "HostName: not set" or it prints a hostname made of only numbers or invalid characters, then the issue is confirmed. To address this, you can set the Hostname to _ and let macOS fill it in for you:

$ sudo scutil --set HostName _

Alternatively, you can set your hostname explicitly:

$ sudo scutil --set HostName my-machine

Prompt your password and you should be good to go.

All Operating Systems

If you are using Livebook from the command line, you may also pass the --name livebook@127.0.0.1 option.

Clone this wiki locally