Tuesday, December 27, 2011

Use android device to connect to internet on PC using USB cable or any wireless source.

I was new to android, and wanted to connect to internet via GPRS/EDGE/3G connections. But unfortunately I couldn't find any modem support in android. In run of demand for a DUN connection I found tethering option in Android phone and found connecting to PC for internet via Android is dead easy!, thanks to tethering, below are the steps and references:-


My devices and setup:
Android version: v2.2, Froyo
Device: ZTE Blade (Or Dell XCD35, Idea Blade in India)
PC: Toshiba Satellite C650 AMD Athlon II P320 CPU, HD4200 ATI card
OS: Windows XP

STEPS:
1. Enable Internet on your Android phone via any source you have access to like GPRS/EDGE/3G data plans.
2. Connect the phone to your Laptop/desktop using USB cable (Otherwise below option will be disabled)
3. Go to phone settings and enable USB tethering :-

Press Home -> press menu -> wireless & networks -> Tethering & portable hotspot -> USB Tethering
Enable this check button.


Once enabled,  If your pc drivers are installed correctly, you will see HSUSB device connected message, remote NDIS adapter device will be shown on your device manager.


Verify the correct setup:
1. Check if your Android device shows BLUE USB icon on the taskbar which opens tethering upon touch event.
2. Open Device manager in windows XP or other OS. Network adapters should show

"Remote NDIS based internet sharing device"


My details are:
Manufacturer: ZTE Corporation
Location: Location 0 (ZTE HSUSB Device)
Control panel => Network Connections => Remote NDIS based internet sharing device




 4. Test internet on your phone if it works, then for sure you will get same speed in your PC.



You can test the speed of your internet by simple command. Open cmd.exe from run dialog and type

ping google.com

below is output from my console:

Pinging google.com [74.125.113.104] with 32 bytes of data:


Reply from 74.125.113.104: bytes=32 time=516ms TTL=45
Reply from 74.125.113.104: bytes=32 time=517ms TTL=45
Reply from 74.125.113.104: bytes=32 time=513ms TTL=45
Reply from 74.125.113.104: bytes=32 time=515ms TTL=45



The lower your time is the faster your internet connection will be. EDGE normally shows values between 200 to 700. Values above it are very slow connection. I get ~250 average in low traffic, ~20-30KBps.




CONCLUSION:
Android's USB tethering just means to share internet from your device to other device no matter what the source of your internet is. So we don't need any kind of Dial Up networking support in phones. So this is a universal solution and that's why android don't need DUN :-).




References:
Tethering & Hotspot
http://support.google.com/mobile/bin/answer.py?hl=en&answer=182134


Share your mobile data connection:
http://support.google.com/mobile/bin/answer.py?hl=en&answer=168932


Windows XP's Android RNDIS device information, tethering, INF file
http://www.android.com/drivers/tetherxp.inf



ZTE Blade drivers:
http://www.zte.co.jp/products/handsets/handsets_gallery/softbank/info/201012/P020101217594818380622.zip

ftp://ca:welcome@ftp.brightpointuk.co.uk/Technical%20Support/ZTE/ZTE_Handset_USB_Driver.exe


Plugging Android phone to PC shows a CDROM with their drivers which upon enabling SDCARD gets removed.



EXTRA (part of my marketing):

If above steps have solved your problem and you are happy, and you do not hate games :), please try the games I have developed.


DesiBallGame - My first android game, recently released

https://play.google.com/store/apps/details?id=org.greh.desiballgame


 My PlayStore profile:

https://play.google.com/store/apps/developer?id=GamesGreh


My website for games:

http://www.gamesgreh.in

13 comments:

Don-One said...

i have a
htc dream with cyanogen mod 6...
when i enable it the pc recognize a network but i a the YELLLOW CAUTION icon on the network icon

bindesh said...

That is mainly due to driver issue. Please open device manager and see the networks device list. Where in properties of that device you can verify the problem.

When you first plug your device it gets detected as CDROM, copy it and install. Otherwise get the drivers from your manufacturer site.

Also please ensure you don't have multiple devices connected which conflict with you HTC. Like another phone etc device with internet connection ON.

Robin said...

Excellant! working fine in SE Experia RAY(ICS).
Thankyou....

Robin said...

Excellant! working fine in SE Experia RAY(ICS).
Thankyou....

venky reddy said...

thanx yaar its too easy
i tried vth various softwares but no use, its too easy now.
Once again thanx 4ur info

venky reddy said...

very gud info yaar
actually i tries to connect net frm my adroid phone vth various s/w's but no use. Its very easy yaar.
thank u very much

bindesh singh said...

Thank you guys as well for confirming that it works without any 3rd party software on maximum phones.

Sandy said...

Very Helpful Post..
Thanks...

Power Point Presentations said...

What nice and professional article you have held, really you have impressed me. I respect your comment from my bottom of heart.
Android phones

bindesh singh said...

Thanks Ishant for your praise. Your blog is worth reading, good work :)

bindesh singh said...

@above (http://itunerbd.blogspot.in),

Thank you for such a nice comment. People rarely give time to thank people, in-spite of knowing how motivating it is for people. But people like you run ahead of the line. Thanks again :)

Unknown said...

Love what you're doing here guys, keep it up!..
hacking forum

Unknown said...

Thank you for taking the time to publish this information very useful!
carding forum