N8n container running but not available on localhost

Describe the problem/error/question

Yesterday I’ve setup n8n docker container. It was running perfeclty fine. Today I’ve startet up the container, in log it says: “Editor is now accessible via: http://localhost:5678” but when I open it in browser the site is not available.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

There are a couple of reasons you would get this error.

Check/ Try the following

  1. Check if you set the port number when creating the container.

  2. Use Chrome browser

  3. Try 127.0.0.1:5678

If this solves your issue, do not forget to hit the ‘solution’ button

1 Like

Looks like I didnt add the port in docker:


how to add it?

When you click the arrow at your images to start a new container, you are presented with a popup, you have to open the additional settings, there you find the port field.

  1. remove you current container
  2. go to your images
  3. click run for the correct image
  4. open additional settings
  5. Field ‘Host Port’, add 5678
  6. Click run
2 Likes

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