# How to open Node-Red in local system from linux server via putty

**URL:** https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405
**Category:** General
**Created:** [10 April 2023 07:04 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405 "2023-04-10T07:04:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [10 April 2023 07:04 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/1 "2023-04-10T07:04:25Z")

</div>

I have installed Node-Red in a linux server which I access it via putty.

I am able to start the node red server by running **node-red** in the terminal of putty. But how can I access the GUI in my local web browser **(not from the browser of linux server)**?

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [10 April 2023 08:07 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/2 "2023-04-10T08:07:41Z")

</div>

Just use the IP address of the server and port 1880 eg 192.168.0.104:1880

hostname:1880 might work too.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [10 April 2023 11:32 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/3 "2023-04-10T11:32:24Z")

</div>

If jbudd's suggestion does not work, it is likely because something is blocking the network traffic.

That might be the local firewall on the server or it might be a router between your local PC and the server.

---

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [10 April 2023 14:19 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/4 "2023-04-10T14:19:01Z")

</div>

This did not work in my case. I am not sure whether it Is because of a firewall or something else.  
Is there any other way to access the GUI?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 April 2023 14:37 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/5 "2023-04-10T14:37:10Z")

</div>

Show us how you connect putty to the server,  
and what you see in putty when you start node red.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [10 April 2023 14:44 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/6 "2023-04-10T14:44:26Z")

</div>

And the IP addresses of your PC and Node-red server

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [10 April 2023 16:21 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/7 "2023-04-10T16:21:29Z")

</div>

> [@syedhannan](#):
>
> Is there any other way to access the GUI?

It is a web page - what other ways would you expect?

---

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [11 April 2023 01:04 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/8 "2023-04-11T01:04:43Z")

</div>

Do I need to use any port forwarding in putty?

---

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [11 April 2023 01:08 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/9 "2023-04-11T01:08:16Z")

</div>

I enter the server address and then sign in as root and then perform a ssh login.

Once I start node-red in putty, I see the typical start message of node-red saying your server is running at 127.0.0.1:1880..

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [11 April 2023 03:02 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/10 "2023-04-11T03:02:48Z")

</div>

> [@syedhannan](#):
>
> Do I need to use any port forwarding in putty?

No.

We know that you can log in to your Linux computer by ssh.  
Run the command **ifconfig | grep inet** and look for an IP address. Not 127.0.0.1.  
This is the IP address that you need to use in your browser with :1880 after it.

> [@syedhannan](#):
>
> Once I start node-red in putty, I see the typical start message of node-red saying your server is running at 127.0.0.1:1880.

It is usual on Linux to arrange for Node-red to run automatically when the computer starts up. Have you not done this?

> [@syedhannan](#):
>
> sign in as root

No-one should ever log in to a Linux system as root. It is inviting all sorts of problems in the future.

---

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [11 April 2023 05:36 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/11 "2023-04-11T05:36:43Z")

</div>

> [@jbudd](#):
>
> This is the IP address that you need to use in your browser with :1880 after it.

Even using that IP address along with :1880 does not open Node-Red and shows **This site cant be reached**

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [11 April 2023 06:27 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/12 "2023-04-11T06:27:48Z")

</div>

> [@syedhannan](#):
>
> Once I start node-red in putty, I see the typical start message of node-red saying your server is running at 127.0.0.1:1880..

Please do what I asked and show us the full startup log. Copy/paste please, not screen shot.  
You are leaving the putty terminal open when you run the browser I assume.

---

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [11 April 2023 06:33 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/13 "2023-04-11T06:33:17Z")

</div>

Here is the start up log

```auto
hannan@ansible:~$ node-red
11 Apr 06:30:12 - [info]

Welcome to Node-RED
===================

11 Apr 06:30:12 - [info] Node-RED version: v3.0.2
11 Apr 06:30:12 - [info] Node.js version: v18.15.0
11 Apr 06:30:12 - [info] Linux 5.15.0-67-generic x64 LE
11 Apr 06:30:13 - [info] Loading palette nodes
11 Apr 06:30:14 - [info] Settings file : /home/hannan/.node-red/settings.js
11 Apr 06:30:14 - [info] Context store : 'default' [module=memory]
11 Apr 06:30:14 - [info] User directory : /home/hannan/.node-red
11 Apr 06:30:14 - [warn] Projects disabled : editorTheme.projects.enabled=false
11 Apr 06:30:14 - [info] Flows file : /home/hannan/.node-red/flows.json
11 Apr 06:30:14 - [info] Creating new flow file
11 Apr 06:30:14 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

11 Apr 06:30:14 - [warn] Encrypted credentials not found
11 Apr 06:30:14 - [info] Server now running at http://127.0.0.1:1880/
11 Apr 06:30:14 - [info] Starting flows
11 Apr 06:30:14 - [info] Started flows

```

Yes the putty terminal is open when i run the browser

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [11 April 2023 07:03 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/14 "2023-04-11T07:03:17Z")

</div>

Are you logging in as hannan now? You should be.  
What does this command show in putty, logged in as hannan?  
`ip addr`

---

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [11 April 2023 07:07 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/15 "2023-04-11T07:07:38Z")

</div>

Yes I am logging in as hannan

```auto
hannan@ansible:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether de:3f:30:dd:a6:b7 brd ff:ff:ff:ff:ff:ff
    altname enp0s18
    inet 192.168.50.254/24 brd 192.168.50.255 scope global ens18
       valid_lft forever preferred_lft forever
    inet6 fe80::dc3f:30ff:fedd:a6b7/64 scope link
       valid_lft forever preferred_lft forever

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [11 April 2023 07:20 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/16 "2023-04-11T07:20:23Z")

</div>

What ip address are you using to connect using putty? and exactly what are you entering in the browser address bar?

---

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [11 April 2023 07:27 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/17 "2023-04-11T07:27:54Z")

</div>

The ip address I enter in putty is different. Once I enter that IP address in putty, then I login as root (**that is how the instructions are for using that server)** and then I perform ssh login to hannan @ 192.168.50.254

In browser I enter 192.168.50.254:1880 . I get this IP address from **ifconfig** after ssh login

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [11 April 2023 07:31 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/18 "2023-04-11T07:31:06Z")

</div>

> [@syedhannan](#):
>
> The ip address I enter in putty is different.

Why is it different? To access node-red via a browser you must be able to directly access it from the machine running the browser. It sounds as if you are trying to connect to a different network, or something simiilar. You need to tell us more about the network configuration.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 April 2023 08:25 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/19 "2023-04-11T08:25:57Z")

</div>

> [@syedhannan](#):
>
> The ip address I enter in putty is different. Once I enter that IP address in putty, then I login as root (**that is how the instructions are for using that server)** and then I perform ssh login to hannan @ 192.168.50.254

This sounds like a managed server of some kind?

> [@syedhannan](#):
>
> `hannan@ansible:~$ node-red`

That is not logged in as root but as a user.

Also, the server's name is `ansible`? Is that the server name you are using to log in via SSH?

---

<div class="post-metadata">

### Author: ![syedhannan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syedhannan/32/72932_2.png) [@syedhannan](https://discourse.nodered.org/u/syedhannan)
#### Post date: [12 April 2023 07:03 UTC](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405/20 "2023-04-12T07:03:11Z")

</div>

To open the GUI had to add these configurations in putty settings

In putty settings \> Connection \> SSH \> Tunnels, added source port as **1880** and destination as **_ip-address_:1880**

Now able to access GUI from browser at **localhost:1880**

[Next page](https://discourse.nodered.org/t/how-to-open-node-red-in-local-system-from-linux-server-via-putty/77405.md?page=2)
