Some clients can't connect to our server.

765 views
Skip to first unread message

Bengt Gustafsson

unread,
Nov 16, 2021, 7:58:47 AM11/16/21
to grpc.io
Hi. We have a gRPC based server on the internet and our own client software connecting to it at different customer sites. Quite often these clients can't connect due to probably some firewall issue in their intranet to internet connection. We changed to using port 443 to avoid firewalls blocking outgoing traffic on unknown ports but that doesn't help.

I turned on logging using gpr_set_log_verbosity(GPR_LOG_SEVERITY_INFO); but I got nothing at all before I got the return value deadline_exceeded. I have increased the timeout to 10s so it's not just slow.

I replaced the URL with the corresponding ip number and then I got could not connect to all addresses with no measurable delay.

Any tips and tricks that could be useful?


Bengt Gustafsson

unread,
Nov 17, 2021, 10:14:15 AM11/17/21
to grpc.io
We were thinking that maybe the problem is that the gRPC library is trying to use a http proxy set up by our customers' IT administrators on employee PCs. To me it is not clear whether gRPC (C++ version, out of the box) would try to use proxy settings in a PC if there are any.

One customer tried a laptop at home which worked, brought it to the office, and it couldn connect anymore.

yas...@google.com

unread,
Dec 1, 2021, 2:22:05 PM12/1/21
to grpc.io
That is probably the issue that you are running into. Please refer - https://github.com/grpc/grpc/blob/master/doc/environment_variables.md for the environment variables that gRPC uses. You can override by using the channel arg - GRPC_ARG_ENABLE_HTTP_PROXY and setting it to 0.
Reply all
Reply to author
Forward
0 new messages