3 improved formatting
source | link

I think reverse tethering solvedwould solve your problem.

androidAndroid reverse tethering steps ::

[ work in only rooted android phone ]

Step 1: connect android via usb.

Step 2: enable usb tethering

GOTO : settings > more .. > Tethering & mobile hotspot > Usb tethering

Step 3: on Host Machine

$ ifconfig usb0 10.42.0.1 netmask 255.255.255.0 
$ echo 1 > /proc/sys/net/ipv4/ip_forward 

Command for sudo will be:

$ sudo 'echo 1 > /proc/sys/net/ipv4/ip_forward' 

Step 4: on Android device [for this step you must install adb on host pc]

$ adb shell 
$ su 
$ netcfg rndis0 dhcp

if it not get ip address than assign manually Note: Works only in a rooted Android phone.

$ netcfg rndis0 10.42.0.2 netmask 255.255.255.0 

$ route add default gw 10.42.0.1 dev rndis0 
  1. Connect Android device via USB.
  2. Enable USB tethering. To do so, go to Settings → More... → Tethering & mobile hotspot → Usb tethering.

  3. On host machine, type:

    $ ifconfig usb0 10.42.0.1 netmask 255.255.255.0 
    $ echo 1 > /proc/sys/net/ipv4/ip_forward 
    

    Command for sudo will be:

    $ sudo 'echo 1 > /proc/sys/net/ipv4/ip_forward' 
    
  4. On Android device (for this step you must install ADB on host PC), type:

    $ adb shell 
    $ su 
    $ netcfg rndis0 dhcp
    

    If it does'nt get the IP address then assign it manually:

    $ netcfg rndis0 10.42.0.2 netmask 255.255.255.0 
    $ route add default gw 10.42.0.1 dev rndis0 
    

Now internet iswould be working in androidthe Android phone.

To check ping www.google, try the command ping www.google.com.com

It workworks for me.

I think reverse tethering solved your problem

android reverse tethering steps ::

[ work in only rooted android phone ]

Step 1: connect android via usb.

Step 2: enable usb tethering

GOTO : settings > more .. > Tethering & mobile hotspot > Usb tethering

Step 3: on Host Machine

$ ifconfig usb0 10.42.0.1 netmask 255.255.255.0 
$ echo 1 > /proc/sys/net/ipv4/ip_forward 

Command for sudo will be:

$ sudo 'echo 1 > /proc/sys/net/ipv4/ip_forward' 

Step 4: on Android device [for this step you must install adb on host pc]

$ adb shell 
$ su 
$ netcfg rndis0 dhcp

if it not get ip address than assign manually

$ netcfg rndis0 10.42.0.2 netmask 255.255.255.0 

$ route add default gw 10.42.0.1 dev rndis0 

Now internet is working in android phone.

check ping www.google.com

It work for me.

I think reverse tethering would solve your problem.

Android reverse tethering steps:

Note: Works only in a rooted Android phone.

  1. Connect Android device via USB.
  2. Enable USB tethering. To do so, go to Settings → More... → Tethering & mobile hotspot → Usb tethering.

  3. On host machine, type:

    $ ifconfig usb0 10.42.0.1 netmask 255.255.255.0 
    $ echo 1 > /proc/sys/net/ipv4/ip_forward 
    

    Command for sudo will be:

    $ sudo 'echo 1 > /proc/sys/net/ipv4/ip_forward' 
    
  4. On Android device (for this step you must install ADB on host PC), type:

    $ adb shell 
    $ su 
    $ netcfg rndis0 dhcp
    

    If it does'nt get the IP address then assign it manually:

    $ netcfg rndis0 10.42.0.2 netmask 255.255.255.0 
    $ route add default gw 10.42.0.1 dev rndis0 
    

Now internet would be working in the Android phone.

To check , try the command ping www.google.com.

It works for me.

2 added 667 characters in body
source | link

I think reverse tethering solved your problem follow this link

android reverse tethering steps ::

[ work in only rooted android phone ]

Step 1: connect android via usb. android reverse tethering steps

Step 2: enable usb tethering

GOTO : settings > more .. > Tethering & mobile hotspot > Usb tethering

Step 3: on Host Machine

$ ifconfig usb0 10.42.0.1 netmask 255.255.255.0 
$ echo 1 > /proc/sys/net/ipv4/ip_forward 

Command for sudo will be:

$ sudo 'echo 1 > /proc/sys/net/ipv4/ip_forward' 

Step 4: on Android device [for this step you must install adb on host pc]

$ adb shell 
$ su 
$ netcfg rndis0 dhcp

if it not get ip address than assign manually

$ netcfg rndis0 10.42.0.2 netmask 255.255.255.0 

$ route add default gw 10.42.0.1 dev rndis0 

Now internet is working in android phone.

check ping www.google.com

It work for me.

I think reverse tethering solved your problem follow this link steps : android reverse tethering steps

It work for me.

I think reverse tethering solved your problem

android reverse tethering steps ::

[ work in only rooted android phone ]

Step 1: connect android via usb.

Step 2: enable usb tethering

GOTO : settings > more .. > Tethering & mobile hotspot > Usb tethering

Step 3: on Host Machine

$ ifconfig usb0 10.42.0.1 netmask 255.255.255.0 
$ echo 1 > /proc/sys/net/ipv4/ip_forward 

Command for sudo will be:

$ sudo 'echo 1 > /proc/sys/net/ipv4/ip_forward' 

Step 4: on Android device [for this step you must install adb on host pc]

$ adb shell 
$ su 
$ netcfg rndis0 dhcp

if it not get ip address than assign manually

$ netcfg rndis0 10.42.0.2 netmask 255.255.255.0 

$ route add default gw 10.42.0.1 dev rndis0 

Now internet is working in android phone.

check ping www.google.com

It work for me.

1
source | link

I think reverse tethering solved your problem follow this link steps : android reverse tethering steps

It work for me.