Synthing gui only runs from remote host using ssh

I have a remote host using Ubuntu Server 20.04 running Syncthing. For some reason, I can only access the Syncthing gui remotely through an ssh binding using ssh -L 9090:127.0.0.1:8384 user@remote_host_ip

I cannot get the gui using remote_host_ip:8384

This the case whether my ufw firewall is up or down (locally, remotely, and both), but I have rules set on the remote machine to allow port 8384 using the syncthing-gui profile, as well as the port forwarded on my local router. The syncthing server works, as I’ve already synced a folder, but I don’t want to have to use a ssh binding every time I want to graphically administer the server.

Some test results:

run on remote host

netstat -npl | grep 8384

returns:

tcp6 0 0 :::8384 :::* LISTEN 63517/syncthing

run on local host:

nping -g 8384 remote_host_ip

returns:

    SENT (3.0088s) Starting TCP Handshake > remote_host_ip:80
    RCVD (3.0437s) Handshake with remote_host_ip completed
    libnsock mksock_bind_addr(): Bind to 0.0.0.0:8384 failed (IOD #5): Address already in use (98)
    Max rtt: 37.149ms | Min rtt: 34.916ms | Avg rtt: 35.803ms
    TCP connection attempts: 5 | Successful connections: 5 | Failed: 0 (0.00%)
    Nping done: 1 IP address pinged in 4.05 seconds

This is a process list filtered for syncthing run on the remote host:

user        63500  0.0  0.8 120560  4992 ?        Ssl  23:08   0:00 /usr/bin/syncthing -no-browser -no-restart -logflags=0
user        63517  0.2  5.5 122800 32668 ?        SNl  23:08   0:04 /usr/bin/syncthing -no-browser -no-restart -logflags=0

Thanks in advance for any help!

Did you adjust the listen address from listening on 127.0.0.1 to 0.0.0.0?

Ipv6 showing :::8384 is meaningless as I suspect you are using ipv4, so check what ipv4 looks like.

Also, firewalls…

Yes, I adjusted the gui listen address in the config file to 0.0.0.0:8384. And I’ve forwarded the port in my firewall. The remote machine is a gcloud vps, and this occurs whether I’m using ufw or not.

Right, the problem is beyond syncthing. I suggest you try some other application, I suspect you’ll have the same issue.

When accessing a remote from local, the local router isn’t relevant. Maybe your vps hoster doesn’t allow networking on arbitrary ports.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.