jose1975 / android-wired-tether

Automatically exported from code.google.com/p/android-wired-tether
1 stars 0 forks source link

PC Does not acquire Internet Connection - HTC Incredible 2 - Gingerbread 2.3.3 #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Plug handset in USB to PC
2. Start Wired Tether app, Click to start Tethering
3. PC (winXP) attempts to acquire IP address and never reaches internet

What is the expected output? What do you see instead?
I'd expect WinXP to obtain IP and connect to internet.  It eventually acquires 
IP address, but can never establish a connection to Internet

What version of the product are you using? On what operating system?
AWT v1.4 on Android 2.3.3 on HTC Incredible 2.  PC is WinXP

Please provide any additional information below.
Brand new INC 2, rooted, 2.3.3.

Original issue reported on code.google.com by paher...@gmail.com on 21 Aug 2011 at 10:14

GoogleCodeExporter commented 8 years ago
fixed it in recompile of apk

--- tetherStartStop.cpp 2011-05-10 01:48:07.000000000 -0400
+++ tetherStartStop.cpp 2011-08-26 13:40:51.000000000 -0400
@@ -254,6 +254,11 @@
    }
 }

+void htcfixroute() {
+    // htcfixroute
+   writelog(system("/system/bin/ip route add table gprs 172.20.23.252/30 dev 
usb0 proto kernel scope link  src 172.20.23.254"),(char*)"HTC ip route fixed");
+}
+
 int main(int argc, char *argv[]) {
    if (argc != 2) {
        fprintf(stderr, "Usage: tether <start|stop>\n");
@@ -274,6 +279,7 @@
        startipt();
        startipfw();
        startdnsmasq();
+       htcfixroute();
    }
    else if (strcmp(argv[1],"stop") == 0) {
        stopdnsmasq();

attached is a working apk

Original comment by dustin.t.knight@gmail.com on 26 Aug 2011 at 6:23

Attachments:

GoogleCodeExporter commented 8 years ago
awesome, thanks.  the only issue is that you're forcing the subnet to a fixed 
value.  not really an issue, but it seems to override the user option.  

Original comment by paher...@gmail.com on 26 Aug 2011 at 8:13

GoogleCodeExporter commented 8 years ago
This patch works for me (rooted HTC Evo 4G).  Thanks!

Original comment by seb.kuzm...@gmail.com on 13 Mar 2012 at 7:56