Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
vinodtcr
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Nov 2009
Location: Kerala
Question [Q] Samsung Galaxy Fit: Share internet from PC

I'm using samsung galaxy fit (GT-S5670) with Android 2.3.4. Please tell me how to configure my phone to access internet through PC using USB cable connection. I'm using Broadband connection in PC.
 
omarhasan76
Old
#2  
omarhasan76's Avatar
Senior Member
Thanks Meter 43
Posts: 127
Join Date: Mar 2011
Location: ranchi
How to get internet on your phone via USB
You may also call this reversed USB tether.
This might come in handy if you're near a computer (Win XP/Win7) and there's no Wifi to connect to etc..
So after some research and trying I've found some information on how to do this.

Requirements:
* Android 2.2 (or an older version with a root tethering app)
* ADB from Android SDK, or a rooted Android 2.2 with terminal in root mode

STEP 1:
Install USB drivers from Android SDK.

STEP 2:
Connect USB cable and activate USB Tethering.
You should see a new network interface. (On XP you might need to install the RNDIS driver manually, see below)
If you're also missing RNDIS driver on Win7, look here.

Win XP manual driver install Android USB Ethernet/RNDIS: (You can skip this if you're on Win 7)
1. Download the following configuration file inside the *.zip attached to this post (tetherxp.inf) to your Windows XP computer.
2. Use the USB cable that came with your phone to connect your phone to your computer.
3. On the Android phone, press Home > Menu > Settings to open the Settings application.
4. Press Wireless & networks > Tethering & portable hotspot.
5. Check USB tethering.
6. When Windows XP’s New Hardware Wizard opens, select No, not at this time and click Next.
7. Select Install from a list or specific location and click Next.
8. Click Browse to browse to the directory where you installed the configuration file you downloaded in Step 1 and click Next. Windows XP uses the configuration file to configure itself to support USB tethering with the Android phone. (This might take a while)
9. When Windows XP finishes installing the software for Android USB Ethernet/RNDIS, click Finish.

STEP 3:
Bridge the 2 network interfaces.

STEP 4:
Setup usb0 interface of your phone. You have to options:
1. From your computer, execute:
./adb shell netcfg usb0 dhcp
2. Or in a root terminal on your phone, type:
su
netcfg usb0 dhcp

You should now be able to connect to Internet on your phone using your computer's Internet connection.

Try to do a ping www.google.com to be sure.

STEP 5:
To shut down the reverse-tethering, first unbridge interfaces on your computer:
sudo ifconfig eth0 down
sudo ifconfig usb0 down
sudo ifconfig br0 down
sudo brctl delbr br0
sudo ifconfig eth0 up
sudo dhclient eth0

Then on your phone, uncheck the USB Tethering option.


Quote...

It is working now. After setting up ICS type in console emulator on your phone:
ifconfig usb1 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev usb0
iptables -F
iptables -F -t nat
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
Hope this helps some one who wants this to the right direction.
And maybe we're able to create an app to do this all automated.

Known issues but does not apply to all users:
1. Internet in browser application does not work.
2. Can't ping domain name.

For a little more info check out the sources, this includes the Linux version too.
 
D@rekills4
Old
#3  
D@rekills4's Avatar
Senior Member
Thanks Meter 243
Posts: 1,007
Join Date: Nov 2010
Please provide source OmarHasan76....

http://blog.mycila.com/2010/06/rever...ndroid-22.html

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...