How to know if I'm connected (Linux GTK GUI)


(Rafael Linux User) #1

I’m using Syncthing for OpenSUSE Linux version, but my LAN is using a proxy to reach internet. My system have no proxy_all environment variable, but https_proxy=http://IP4:PORT and http_proxy=http://IP4:PORT (IP4 and PORT are hidden in this post). Anyway, I tried with export proxy_all=http_proxy=http://IP4:PORT but it seems it’s doing nothing in this device, cause I guess the icon in task bar should be “blueish” not “greyed” as it’s.

Please, any help?


(Audrius Butkevicius) #2

I am not sure what you are trying to achieve.


(Rafael Linux User) #3

Many programs shows in the notification area next to the real time clock, in his own icon, if they are online or not. Dropbox, for example, is greyed when no connection. I’m sure that Syncthing is not working cause the proxy but how does Syncthing warn user about no connection?


(Audrius Butkevicius) #4

There is no single point of connection, syncthing connects to potentially multiple devices, so saying connected or not connected does not make much sense.

You can check in the web ui of you are connected to any devices or not. I am not sure if syncthing-gtk exposes any visibility of that via the icon.


(Rafael Linux User) #5

Is there no way to config proxy in PC? On Android app it is possible, but QSyncthingTray has no options for that and, as I wrote here, Linux environment variable for proxy that Syncthing is taking (proxy_all) is not declared in most Linux distros.

If I try to access Syncthing internal configuration web page, I get a “Unable to access this site. Page 127.0.0.1 is rejecting your connection … ERR_CONNECTION_REFUSED”. Firewall is disabled but system proxy is configured correctly (all web browsers works fine with my proxy settings).

Please, any help?


(Audrius Butkevicius) #6

You configure the proxy by setting environment variables, as described in the docs. You should configure our browser to bypass proxy for local connections. This is not much todo with syncthing but todo with your browser configuration.


(Rafael Linux User) #7

As I wrote, I HAVE assigned the proxy environment variables

https_proxy=http://IP4_x.x.x.x:port
http_proxy=http://IP4_x.x.x.x:port
**no_proxy=localhost, 127.0.0.1**
all_proxy=http://IP4_x.x.x.x:port
socks_proxy=
gopher_proxy=
ftp_proxy=

but despite it, I have not access to that config page nor internet thru Syncthing.


(Audrius Butkevicius) #8

Quoting myself, if I understand your issue correctly that you cannot access the syncthing UI running locally:


(joe buttler) #9

Thanks for sharing this tips.


(Rafael Linux User) #10

Not only I can’t access Synthing local web service but Syncthing can’t access internet if I’m behind a proxy and under a correct proxy configuration (I must remember that web browsers, SpiderOAK, Telegram, etc are working fine with this proxy, but Telegram let me config proxy parameters, for example).


(Audrius Butkevicius) #11

Syncthing can’t work over an http proxy, as it does not use http for its protocol, hence requires either direct TCP access to the internet or via socks proxy.

I understand that browsers are working fine when connecting to the internet, but they are not working fine when accessing localhost, if they still try to route localhost traffic via a proxy, which it seems what they are doing, given you cannot access the web ui locally.


(Rafael Linux User) #12

Sorry, you didn’t notice what I wrote before. There is a “no_proxy” environment variable, so it’s not using proxy for localhost (127.0.0.1), so it should work locally.

Anyway, if Synthing can not use http proxies, I never will can use it. It’s a pity.

Thank you anyway


(Antony Male) #13

It doesn’t matter: if your browser cannot access Syncthing’s web UI with your proxy configuration, that is a problem with your browser, not with Syncthing. It doesn’t matter whether you think you’ve configured everything correctly: the problem is not with Syncthing, it is between your browser and the proxy.


(Rafael Linux User) #14

Even in the case something were wrong between Syncthing and my browsers, limiting Syncthing to use socks proxies will not let me to use Syncthing, cause it will not reach internet. So, can I suggest as a wish to implement this feature?


(Antony Male) #15

Impossible. Syncthing does not communicate over HTTP. HTTP is a simple(ish) stateless protocol used to talk to web servers. Syncthing is neither stateless, nor a web server.


(Audrius Butkevicius) #16

no_proxy works in syncthing but it’s irrelevant, as in your case it doesn’t seem to work in the browser, so you are barking up the wrong tree, and probably should go on the browser forums asking why the browsers do not respect no_proxy.


(Rafael Linux User) #17

We are talking about two non related questions.

  1. Problem accesing from web browser to Syncthing on localhost (that I’ll check later)
  2. Syncthing is not able to access internet in a LAN with only an HTTP proxy (that is the case).

So the first problem is irrelevant if Syncthing will not work even if I get access to Syncthing thru any web browser.

Then, I ask again, if are there any plans to get Syncthing to work thru http proxies too, that really what I need to know. All other issues are not relevant if this functionality is not available for HTTP proxies environments.

Thank you


(Antony Male) #18

As above:


(Eser Gozcu) #19

@AudriusButkevicius @canton7 I have a suggestion here, perhaps it does not exactly do what ticket title says, however it might actually partially fulfill the request. Would it be nice to have SyncTrayzor taskbar icon gray color when all remote devices are in “Disconnected” state? Surely this can be due to remote devices not being online. But also this will get the attention of a user to check the UI to see if everything is fine. Also to inform the user that as for now syncing is not happening.


(Rafael Linux User) #20

I have not deep skills in protocols, so I don’t understand why you justify that Syncthing do not communicate thru HTTP proxy cause is a stateless protocol and not socks. What’s the problem on using an HTTP proxy? All programs that I use let me choose an HTTP proxy at least. Other let me choose between HTTP or SOCKS. I’m talking about programs similar like Dropbox, SpiderOAK or even MEGA. If it’s not a technical problem and is a Syncthing developers choice, I only can suggest the HTTP proxy implementation. :wink: