Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.23k stars 571 forks source link

reverse tethering working only with jumpgo browser if i add proxy & port 8080 other android application are not working any alternative method #167

Closed raafeeq closed 5 years ago

rom1v commented 5 years ago

If your internet access requires a HTTP proxy, then you need to configure every client application to use this proxy.

See https://github.com/Genymobile/gnirehtet/issues/4#issuecomment-292917846.

raafeeq commented 5 years ago

Please check the blow commands are correct adb shell settings put global 10.1.30.10 abc adb shell settings put global 8080 123

adb shell settings delete global 10.1.30.10 adb shell settings delete global 8080

if i want to use another internet connection. do i need to delete the settings every time ?

rom1v commented 5 years ago

Please check the blow commands are correct adb shell settings put global 10.1.30.10 abc adb shell settings put global 8080 123

They are not.

adb shell settings put global global_http_proxy_host 10.1.30.10
adb shell settings put global global_http_proxy_port 123

if i want to use another internet connection. do i need to delete the settings every time ?

I think so.

raafeeq commented 5 years ago

please check the below commands i am little confuse with it if it is correct or no adb shell settings put global global_http_proxy_port 8080 adb shell settings delete global global_http_proxy_host 10.1.30.10 adb shell settings delete global global_http_proxy_port 8080

and what will be the command for one short "adb shell settings put global http_proxy abc:123 # in one shot" thank you very much

rom1v commented 5 years ago

From examples in https://github.com/Genymobile/gnirehtet/issues/4#issuecomment-292917846, replace abc by 10.1.30.10 and 123 by 8080.

raafeeq commented 5 years ago

while deleting it shows "too many arguments"

adb shell settings delete global http_proxy 10.1.30.10:8080 Too many arguments

rom1v commented 5 years ago

while deleting it shows "too many arguments"

Of course, you passed too many arguments. :wink:

adb shell settings delete global http_proxy
raafeeq commented 5 years ago

so what will be the correct command to delete "adb shell settings put global http_proxy 10.1.30.10:8080"

rom1v commented 5 years ago

Yes, the put command sets http_proxy to 10.1.30.10:8080, the delete command unsets http_proxy.

raafeeq commented 5 years ago

now every this working except WhatsApp and IMO is there any alternative way to run these applications.

rom1v commented 5 years ago

Because WhatsApp probably does not respect global HTTP proxy settings, or does not use HTTP at all. Or maybe you can configure a specific proxy in WhatsApp settings?

Otherwise, you should use it in a non-filtered network (which does not require a proxy).

raafeeq commented 5 years ago

Thank you