Change default locahost to

I just installed
npm install -g n8n
then n8n to start n8n
but it starts on localhost
how do i change it to ?


It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

You need to set it in the env file. If using Windows, go to the directory where n8n stores its database.sqlite file, create an empty file and name it only .env (that is dot env)

Edit that file and add these lines:

# Set default URL instead of localhost

Once you save that file, stop and restart n8n fully (or reboot machine). It should be accessible at that IP now.

If you’re using any other OS than Windows, it’s still possible but I cant advise how to find and edit that file as I only use Windows currently.


thank you.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.