theCapypara / steamdeck-decky-syncthing

Syncthing plugin for Decky
Other
19 stars 3 forks source link

Syncthing-GTK different sync port and webUI port #5

Closed coldfire0200 closed 1 month ago

coldfire0200 commented 11 months ago

Not really a bug but something to note in case other people experience the similar problems.

I installed SyncthingGTK flatpak and for some reason the program uses port 8384 as sync port and 8081 for webUI. Seems to be all by default as I have not explicitly changed the settings.

The decky-syncthing thus cannot access webUI (or open 127.0.0.1/58384). But syncthing service was able to start no problem. After I manually changed config.xml in syncthing everything works perfectly with the decky plugin.

Debrisfield commented 11 months ago

What specifically did you change? I'm having the same problem but I'm not sure what specifically needs to be changed to what. I see

<gui enabled="true" tls="false" debugging="false">
        <address>0.0.0.0:8081</address>

but I'm not sure what to change the port here to, I did change it to 8384 when trying earlier, as well as changing the port in the plugin settings to 8081 and 8384 alongside the config.xml but no there was no difference.

coldfire0200 commented 11 months ago
  1. Log into web UI settings. Set user name and password
  2. Generate API key
  3. Open config.xml, change port to 8384. Copy API key.
  4. Restart Deck
  5. In Decky-Synchthing UI, turn on "Start Synchthing automatically", fill in the API key you copied previously, set the user and password you previously set.
  6. Restart Deck and you should be all set

What specifically did you change? I'm having the same problem but I'm not sure what specifically needs to be changed to what. I see

<gui enabled="true" tls="false" debugging="false">
        <address>0.0.0.0:8081</address>

but I'm not sure what to change the port here to, I did change it to 8384 when trying earlier, as well as changing the port in the plugin settings to 8081 and 8384 alongside the config.xml but no there was no difference.

sam8457 commented 1 month ago

This thread also helped me, but just FYI for anyone who was stuck while trying to find the config.XML file, you can also change the ports in the web interface.

Just run Syncthing GTK, right click the tray icon, and select Open Web Interface. Then in your browser, click Actions, Settings, and under the GUI tab in the GUI Listen Address box enter 127.0.0.1:8384 , and under the Connections tab in the Sync Protocol Listen Address box change TCP://0.0.0.0:##### and quickly://0.0.0.0:##### to TCP://0.0.0.0:22000 and quickly://0.0.0.0:22000 , then click save. After that go back to game mode and run the setup for the syncthing plugin in Decky Loader again.

The issue for me ended up being caused by having syncthing tray installed prior to syncthing gtk, and I think GTK defaulted to a different set of ports to avoid collisions with the other flatpak.