Syncthing in hyper-v won't work

Hello, have Windows Server 2019. Using Hyper-V and there is installed Ubuntu Server 18.04 LTS. Installed syncthing and followed this guide:

But can’t open web gui, it shows me only

This site can’t be reached 10.50.20.14 refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

Any idea what is bad and how to fix that please? logs: https://pastebin.com/Sf2Qg5Zz

Syncthing’s web GUI is only reachable from localhost by default. In your case localhost probably means the Ubuntu VM. It appears you’re trying to reach the GUI from the outside, which is not possible in the standard configuration.

You need to either access the GUI from within the VM or configure the GUI listen address to listen for external connections. The guide you linked actually covers how to this.

In short, changing the GUI address can be done either

  • By changing the config via the GUI (which is sort of a bootstrapping problem, because you need to access the GUI for that)
  • By modifying config.xml
  • Or by setting the -gui-address command line parameter (this is explained in the guide)
1 Like

It took two seconds of skimming your log to see these lines:

Feb 18 15:17:55 ubuntu syncthing[4146]: [IH25Q] INFO: GUI and API listening on 127.0.0.1:8384
Feb 18 15:17:55 ubuntu syncthing[4146]: [IH25Q] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/

Thank you. Didn’t know there is config.xml. After change IP it works perfect. Thank you

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