I'm using a vpn tunnel through a 4g lte connection to access node-red running on a Windows10 machine. The browser on the local machine can bring up the flow editor @ 127.0.0.1:1880 however remote machines connecting in through the vpn can not. The browser on a remote machine will throw these errors in the web console:
I'm not sure what I'm up against here. I've tried completely removing node.js and node-red and reinstalling, I've tried both Node.js 12x and 14x, i've tried with the modules I need installed and without. I've created my own secret key for the credientials in the settings file. I've tried extending timeouts in the settings file.
Can you bring up the editor locally using the full ip address? Try it on the machine running node-red and from another machine on the local network, if you have one.
Yes the machine running node-red responds at both 127.0.0.1:1880 and at 192.168.70.125:1880. There are no other devices that have web browsers on that LAN to check with.
Is this a new VPN setup?
Does the VPN work perfectly for other things?
What do you see if you run (remotely) wget http://192.168.70.125:1880/vendor/vendor.js
Copy/paste the result, using the </> button at the top of the forum text window when pasting it here.
Run it a few times and see if you get different results
Well it has fetched ok, but your connection only seems to be running at 0.136Mbps which suggests you have a fundamental problem somewhere. Is it as slow as that if you use the vpn for other stuff or is it only node-red?
In a terminal on the node red machine run whatever tool shows you cpu performance etc in Windows and see if anything is hogging the processor or something.
that is showing the speed at which a .zip file was copied through ssh from the windows machine through the vpn. The speed is slow and variable, but it is sufficient to do the other tasks I need it to. I can get away with just running the node-red editor on the windows machine, I just wanted to see if there was something I could do to configure node-red to get it to put up with a slow connection.
OK, I don't know whether it is the fact that you only have 140kbps available that is causing the problem, but that is incredibly low. Looking at the network traffic I can see that my dashboard is about 3MB total, which would take about 3.5 minutes to download, so I suspect what is happening is that the connection is timing out. I don't know whether there is anything you can do about that.
That suggests that it isn't your cellular connection that is causing the problem but something to do with the VPN.