Remote GUI access from Win11 to Debian 13

Background:

I want to open the syncthing GUI of a Debian13 device remotely from my Win11 device. But all attempts fail. But I can open the remote GUI of my NAS (also a Debian device).

Debian13 itself shows the GUI in firefox browser under 127.0.0.1:8384 without problems.

I configured the ufw firewall manually and using the service name:

sudo ufw status numbered
Status: active

	 To                         Action      From
	 --                         ------      ----
[ 1] 8384                       ALLOW IN    192.168.99.101
[ 2] 8384                       ALLOW IN    Anywhere
...
[ 6] syncthing                  ALLOW IN    Anywhere
[ 7] syncthing-gui              ALLOW IN    Anywhere
[ 8] syncthing (v6)             ALLOW IN    Anywhere (v6)
[ 9] syncthing-gui (v6)         ALLOW IN    Anywhere (v6)

Note: the above 192.168.99.101 is my Win11 device. The IP of Debian is 192.168.99.128.

Entering on Firefox of Win11 device:

https://192.168.99.128:8384/

or

192.168.99.128:8384

cannot open the remote GUI (neither telnet can open the port → “Connection refused”)

Any ideas what is wrong here?

The issue “cant-access-remote-gui/14102” contains a hint that remote opening the synthing GUI is not working if the versions are different.

In Win11 I use the actual version v2.1.6, Windows (64-bit Intel/AMD).

In Debian13 there is the newest verstion v1.29.5, Linux (64-bit Intel/AMD) (installed using apt).

The Debian NAS shows the version v2.1.6, Linux (64-bit Intel/AMD) (installed using the Synology packet manager).

Have you changed the GUI address (in Syncthing) from the default 127.0.0.1 to 0.0.0.0? This is required in order to allow remote access.

That is the problem. The software interface for the management console is designed to only be accessible by the host at 127.0.0.1 on port 8384.

Changing the IP address to 0.0.0.0 tells SyncThing to allow connections from any network device.

On the downside this allows any computer that can be accessed via the network to open a connection to the server on that port.

If you are in a security-minded conscious environment and want to be able to both access the admin console from Windows 11 and also not change the security setting from “allow only local connections,” there is a way around it. Here are the directions.

These were written in a program that uses Markdown formatting so I’m going to attempt pasting that into here in the Markdown layout. If it looks good, great. If it doesn’t I’ll paste a hyperlink to the file that’s formatted properly.

How to Remotely Access Syncthing on Linux from Windows 11 Using SSH

These instructions explain how to access the Syncthing web management console running on a Linux computer from a Windows 11 computer, without changing Syncthing’s default security settings.

Syncthing normally allows its management console to be accessed only from the computer on which it is running, using:

http://127.0.0.1:8384

We can get around this restriction securely by creating an SSH tunnel between the Windows and Linux computers.

Step 1: Install SSH Server on the Linux computer

On the Linux computer, open a terminal.

For Ubuntu, Linux Mint, Debian, or similar distributions, enter:

sudo apt update
sudo apt install openssh-server

Start the SSH server and configure it to start automatically:

sudo systemctl enable --now ssh

Verify that SSH is running:

sudo systemctl status ssh

You should see active (running).

If the Linux firewall (UFW) is enabled, allow SSH connections:

sudo ufw allow OpenSSH

Step 2: Find the Linux computer’s IP address

On the Linux computer, enter:

hostname -I

You should see an IP address similar to:

192.168.1.100

Write down this address. You’ll need it when connecting from Windows.

Also, determine the Linux username:

whoami

For our examples, we’ll use:

  • Linux username: john

  • Linux IP address: 192.168.1.100

  • Syncthing management port: 8384

Step 3: Verify Syncthing is running on Linux

On the Linux computer, open a browser and visit:

http://127.0.0.1:8384

The Syncthing management console should appear.

You do not need to change the GUI Listen Address in Syncthing. Leave it configured as:

127.0.0.1:8384

This prevents other computers from connecting directly to the management console.

Step 4: Create the SSH tunnel from Windows 11

On the Windows 11 computer, open PowerShell or Command Prompt.

Windows 11 normally includes the OpenSSH client, so no additional software is necessary.

Enter the following command:

ssh -N -L 8384:127.0.0.1:8384 john@192.168.1.100

Replace john and 192.168.1.100 with the Linux username and IP address you identified earlier.

When connecting for the first time, SSH may ask you to confirm the Linux computer’s host key. Verify that it belongs to the intended computer before accepting it.

Next, enter the Linux user’s password if prompted.

After authentication, the terminal may appear to be doing nothing. This is normal. The SSH tunnel is active and waiting for connections.

Keep this window open.

Step 5: Open Syncthing in your Windows browser

On the Windows 11 computer, open Chrome, Firefox, Edge, or another browser.

Enter:

http://127.0.0.1:8384

You should now see the Syncthing management console running on the Linux computer.

You can manage folders, connected devices, synchronization settings, and other Syncthing features just as though you were sitting in front of the Linux computer.

All communication between the Windows and Linux computers travels through the encrypted SSH tunnel.

Step 6: What if Windows is already running Syncthing?

If Syncthing is also running on the Windows computer, port 8384 may already be in use.

Simply use another local port, such as 9999.

On Windows, enter:

ssh -N -L 9999:127.0.0.1:8384 john@192.168.1.100

Then open this address in the Windows browser:

http://127.0.0.1:9999

This connects to the Linux Syncthing console without interfering with the Windows installation.

Step 7: Disconnect when finished

When you are finished managing Syncthing, return to the PowerShell or Command Prompt window containing the SSH connection.

Press Ctrl+C to close the tunnel.

The Syncthing service on Linux will continue operating normally.

Troubleshooting

Problem Possible solution
Connection refused Make sure the SSH server is running on Linux.
Connection timed out Check the Linux IP address, firewall, and network connectivity.
Permission denied Verify the Linux username, password, or SSH key.
Port 8384 already in use Use local port 9999 instead.
Browser cannot connect Confirm Syncthing is running and accessible locally on Linux.
Tunnel disconnects Check the network connection and restart the SSH command.

Important security considerations

  • Leave Syncthing configured to listen on 127.0.0.1:8384.

  • Do not open port 8384 on the Linux firewall or router.

  • Only the SSH port (normally TCP 22) needs to be reachable from Windows.

  • For access across the Internet, consider using a VPN such as Tailscale rather than forwarding SSH through your router.

  • Set a username and password for the Syncthing web management console for additional protection.

That’s it! You can now securely administer Syncthing on a Linux computer from Windows 11 without exposing its management console to the network.

The same SSH tunneling technique works with many other Linux applications that provide a web interface restricted to 127.0.0.1.

BTW,

I am also a Tailscale user. You can use Tailscale in place of SSH if you wish. If you do it with this method you can access the console from anywhere on the internet so long as the remote computer is running Tailscale in the same network. I have instructions written already for remote access via Tailscale if you need them?

Syncthing Remote Admin Console via Tailscale

Thank you. That did the trick.

Thank you for your suggestion.

But the suggestion, to change the local address to 0.0.0.0 is much easier. Note: I have the firewall-rule that only one distinct device in my LAN can open the port 8384:

8384                       ALLOW IN    192.168.99.101

Just make sure to have the GUI protected with a strong password if you ever connect the device to an untrusted network (e.g. if it’s a laptop used on the go, etc.).