Accessing Remotely to Node-RED server

1,356 views
Skip to first unread message

Xavi

unread,
Apr 1, 2015, 3:44:01 PM4/1/15
to node...@googlegroups.com
Hi, i just installed Node-RED in a VM on Azure.. i started it and it says running on http://127.0.0.1:1880/, and that's localhost.. but if i go to http://myVmIp:1880/ i cant enter into node-red.. maybe it's a really easy question, but how do i do it?

Nicholas O'Leary

unread,
Apr 1, 2015, 3:49:01 PM4/1/15
to Node-RED Mailing LIst
I've not used Azure, so can't give you first-hand advice, but have you set up an endpoint to expose that port? 

Nick

On 1 April 2015 at 20:44, Xavi <xavie...@gmail.com> wrote:
Hi, i just installed Node-RED in a VM on Azure.. i started it and it says running on http://127.0.0.1:1880/, and that's localhost.. but if i go to http://myVmIp:1880/ i cant enter into node-red.. maybe it's a really easy question, but how do i do it?

--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Xavi

unread,
Apr 1, 2015, 3:58:18 PM4/1/15
to node...@googlegroups.com
My teacher has borrowed me the vm so i cant edit any of those settings. is there any other way of accessing the node-red tool ? Am i doing anything wrong? I installed Node-RED in the vm running linux. Then I started it up, and tried to reach it at the VM's IP at the 1880 port.. Is it right? 

Dave C-J

unread,
Apr 1, 2015, 4:24:22 PM4/1/15
to node...@googlegroups.com
Hi Xavi

well hopefully he has set up some endpoint port to be open ...
if so then you can edit the Node-RED settings.js file to change the default port to that instead ?
but you have to find that port first.

Xavi

unread,
Apr 1, 2015, 4:32:03 PM4/1/15
to node...@googlegroups.com
I asked him to set me an endpoint. He is going to do it tomorrow.. Another question.. I edited the settings.JS file.. Changed the port from 1880 to 1881 (just to try) bit i noticed that, eventi restarting node-red the port is always 1880.. I used VIM on linux console to edit the file andò double-checked if i saved the file.. Any idea why changes on setting.JS doesnt take effect?

Julian Knight

unread,
Apr 1, 2015, 4:32:32 PM4/1/15
to node...@googlegroups.com
In Azure VM's you have to configure the allowed ports. You will need to ask which ports are available. Problem may be that the ports available might already be in use (e.g. 80 and 443 standard web ports).

If that is the case, you will need to be able to configure a proxy. If the VM is already running NGINX web server for example, you can configure it to act as a proxy for NR. You would then access NR using the standard web address but on a folder, e.g. something like myserver.azure.com/proxyred/....

Needless to say, this is tricky to set up. Easier to ask your teacher to open up the NR port instead!

Xavi

unread,
Apr 2, 2015, 7:00:47 AM4/2/15
to node...@googlegroups.com
Ok, my teacher opened me the port, now it works flawlessly ;) Thanks for your help.
Now, I have another question. I am trying to edit the settings.js file. I must edit it via command-line, so I'm using VIM. I can edit the file, i save it. But when i restart Node-RED changes do not take effect. Do you know why?

Dave C-J

unread,
Apr 3, 2015, 11:27:50 AM4/3/15
to node...@googlegroups.com
Hi Xavi,

that's odd - I assume you do have write access to save the file correctly (your teacher hasn't blocked that :-) - if you inspect the file afterwards I presume it is still edited...  and you are stopping and restarting the Node-RED process (not just reloading the web page). I have seen some containers revert files when they are restarted (eg Docker etc)  - but VMs are usually OK.

Dave C-J

unread,
Apr 3, 2015, 11:42:27 AM4/3/15
to node...@googlegroups.com
Xavi,

 you can also start Node-RED with the -s option to force it to point to the settings file just to make sure
   node red -s mysettings.js
Reply all
Reply to author
Forward
0 new messages