Hi,
I just installed node-red on my PC, however when I tried to open in my browser http://localhost:1880/, I got Cannot GET error (see image).
Please help.
Hi,
I just installed node-red on my PC, however when I tried to open in my browser http://localhost:1880/, I got Cannot GET error (see image).
Please help.
What happens if you replace localhost
with 127.0.0.1
?
Just there may be a problem with the translation of localhost
.
Sorry, but it has to be asked.
And are you sure Node-red IS running?
In another terminal (CLI) ....
Oh, windows.
sorry. I'm stuck with what the command is to check in windows.
Sorry. I felt it had to be asked.
Sometimes the simplest of things make your life miserable.
(I know)
Someone else who is smarter than me will tell you the command to check Node-Red IS running in windows.
In ubuntu it is
sudo systemctl status nodered.service
But I don't think that is it in your OS
What does this command show?
curl 127.0.0.1:1880
When posting terminal output please copy/paste rather than screenshot. Use the </>
button in the forum entry window and paste the text between the lines with backticks.
I always cd into .node-red before issuing node-red command
I've no idea if it makes a difference or not but just give it a try just in case it does
Your log output looks fine otherwise so bit of a mystery (I run NR on Pi and Win11)
What happens if you try using the IP of the machine running NR
http://192.168.?.?:1880
It should just work with a default installation. The console shows the address the Node-RED server can be reached at, that looks normal. Might be a networking/firewall/browser issue where localhost is blocked somehow in a corporate network?
Do you close the cmd window? It needs to stay open if you start NR like this.
Hi Colin i get:
Microsoft Windows [Version 10.0.17763.4851]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\Rexroth>curl 127.0.0.1:1880
Cannot GET /
C:\Users\Rexroth>
Thanks I managed to go into Node-Red by entering my machine IP address, localhost:1880 is not working.
Is node red running on the same computer that is running the browser? If so, then 127.0.0.1:1880 should work even if localhost does not, unless you installed the Docker version of node-red.
my node red is running on the same computer is not in Docker. Not sure why 127.0.0.1:1880 and localhost does not work for me.
I have three suggestions that might be useful.
Are you using any VPN?
Run CMD with administrator privileges
just tried those method, still the same error.
check your /etc/hosts
file.
There MUST be a line in it:
127.0.0.1 localhost
If there isn't, localhost
will not be translated and so won't work.
That will not help if 127.0.0.1 does not work.
Reading reply #6:
What happens if you try using the IP of the machine running NR
http://192.168.?.?:1880
Was marked as the SOLUTION.
To me - and I know I am dumb - that means it worked.
If it didn't then it isn't the solution. That's a whole other story.
So given it was stated that localhost:1880
didn't work and when it was suggested to try 127.0.0.1:1880
and it was marked as the solution.....
(I give up)
No, in reply to your initial post in this thread, suggesting trying 127.0.0.1 the OP said that did not work. The suggestion that works is to use 192.168.x.x or whatever is the IP of the machine.
OP was:
I just installed node-red on my PC, however when I tried to open in my browser http://localhost:1880/, I got Cannot GET error (see image).
Reply number 6 was:
What happens if you try using the IP of the machine running NR
http://192.168.?.?:1880
And so I replied to the new information that entering the IP address works.
What is YOUR problem?