Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.13k stars 565 forks source link

GRPC #127

Closed jo215 closed 6 years ago

jo215 commented 6 years ago

I am trying to communicate with a GRPC service via gnirehtet. GRPC seems to run over TCP, but I am not seeing any traffic over the tunnel. Do you have any ideas as to what the problem may be?

rom1v commented 6 years ago

Does gnirehtet work as expected otherwise (browsing website, etc.)?

jo215 commented 6 years ago

Yes, fine. However, some further testing is showing my grpc client (android side ) fails to talk to the server even when I exclude the server's address from the routes I supply to gnirehtet (and keep wifi on). It works fine if gnirehtet is not working.... It could be problems with my client app I guess...

rom1v commented 6 years ago

Could you provide concrete examples, please? (ip of the server, dns used, the parameters you pass to exclude routes, any relevant logs in adb logcat or in gnirehtet output...)

jo215 commented 6 years ago

Hey, thanks for getting back to me. It turned out that the grpc client on the device was waiting for the network to come up, and not detecting the vpn. I added some code to detect the case when the vpn is connected, and all works as expected. Case closed!