Genymobile / gnirehtet

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

Custom DNS #121

Open mksmbrtsh opened 6 years ago

mksmbrtsh commented 6 years ago

Hi!

I working with RUST server version for win, I edit start script:

G:\hj\gnirehtet\relay-rust\target\debug\gnirehtet.exe run -d xxx.xxx.xxx.x @pause

But.. not work :( on Windows 10 ver 17134.112 and Android 5.1 mipad 2. Not work on Windows 7 and Android 5.1 mipad 2. Also, i test with xiomi redme 4x.. not work,

What i did not true? If i use default script command, work very good on my all config.

rom1v commented 6 years ago

Put gnirehtet.apk in the same directory as gnirehtet.exe, and execute the command from that directory:

cd yourdirectory
gnirehtet.exe run -d xx.xx.xx.xx
@pause
mksmbrtsh commented 6 years ago

dir: adb.exe AdbWinUsbApi.dll gnirehtet.exe AdbWinApi.dll gnirehtet.apk gnirehtet-run.cmd

gnirehtet-run.cmd: G:\hj\gnirehtet\relay-rust\target\debug\gnirehtet.exe run -d xxx.xxx.xxx.x @pause

May be xxx.xxx.xxx.x change to xxx.xxx.xxx.xxx ? But i try: G:\hj\gnirehtet\relay-rust\target\debug\gnirehtet.exe run -d xxx.xxx.xxx.x,xxx.xxx.xxx.xx

mksmbrtsh commented 6 years ago

Oh. 2018-06-29 10:29:46.238 INFO Main: Starting relay server... 2018-06-29 10:29:46.238 INFO Main: Checking gnirehtet client... 2018-06-29 10:29:46.238 INFO Relay: Relay server started 2018-06-29 10:29:46.316 INFO Main: Starting client... Broadcasting: Intent { act=com.genymobile.gnirehtet.START cmp=com.genymobile.gni rehtet/.GnirehtetControlReceiver (has extras) } Broadcast completed: result=0 Apk installed on device. I try set DNS in xxx.xxx.xxx.0xx 3char on end(add start zero). But., not work.

mksmbrtsh commented 6 years ago

Oh, i build apk in Android Studio, and start deploy on device... work. Android app not include default activity. I'm add it.

olisax commented 5 years ago

Hello! I have the same issue on my company network. The google DNS server (8.8.8.8) cannot be reached, I then tried with the custom one: gnirehtet.exe run -d 10.6.0.xxx But I've got no internet on my device... and I have errors like this one:

2018-11-22 16:07:31.186 ERROR TcpConnection: 10.0.0.2:51018 -> 31.13.90.49:443 C annot read: [TimedOut] A connection attempt failed because the connected party d id not properly respond after a period of time, or established connection failed because connected host has failed to respond. (os error 10060)

@mksmbrtsh Can you share the working apk you deployed?

rom1v commented 5 years ago

Is 31.13.90.49 accessible from your computer?

Does your company network require an HTTP proxy? If so, you need to configure the proxy in your Android webbrowser.

olisax commented 5 years ago

Thanks for your quick answer ! 31.13.90.49 is not accessible from my computer browser (firefox) but it is reachable with ping: Reply from 31.13.90.49: bytes=32 time=10ms TTL=50

Yes my company network require a proxy. I'll try to find a android browser that can be proxy-configured inside the GUI so I keep the default one without proxy :-)

olisax commented 5 years ago

Hoorah ! With the jumpGo browser configured with the HTTP proxy, web navigation works. Thanks !

Now I need to figure out how to configure Whatsapp to go through the HTTP-proxy ;-)