Should we change this to not use `localhost` but the hostname?