The tutorial does not explain it and I could not find an answer on the official docs.
Everyone assumes the machine running Syncthing will have a Operating System UI, such as Ubuntu, Windows or Debian, but CentOS doesnt have it. So how can I access the GUI of Syncthing on that? I am sure there is a way to access it remotely, but trying to do “IP-of-my-server”:8384 on my browser didnt work.
Oh and regarding the tutorial you quoted: The Syncthing release files include templates of the systemd service files in the etc/linux-systemd subdirectory. I’d prefer those instead of copying code from some random website. See also Starting Syncthing Automatically — Syncthing v1 documentation
So, does this mean all I have to do is to change the port number in the config file to 0.0.0.0:8384 and I will be able to access the GUI from outside using the IP address of the server?
That would work, but would be a rather insecure solution.
I prefer SSH port forwarding for such cases, i.e. I connect from my computer to the server via SSH using a command like
ssh -L 9090:localhost:8384 myserver.com
What this command does is establish a SSH connection between my computer and myserver.com and makes sure that the server’s localhost:8384 (that is, the Syncthing web interface) is mirrored to my local computer’s port 9090. I can then open localhost:9090 in my browser, and it works the same as if I opened localhost:8384 on the server, as long as the SSH session is active.