Android Usb Port Forwarding
Download Windows part : AndroidTool.zip - 3.2 MB
Download Android part Tracetool_service.zip - 99.04 KB
Introduction
The Android architecture does not allow to start communication from the Android to the host through the USB cable.The opposite is possible, using the Google "Android Debug Bridge" (ADB in short).
This tool will act as a tunnel between the Android client application and the host server. It is a software implementation of a router doing IP port forwarding.
On the Host part, you have to declare the ports you want to be opened on the Android and the tunnel will transfer communications between the android and the host. The host can be any server on the network or your local host.
Prerequisits
- Enable "Usb debuging" on your Android
- Install "Usb Tunnel" on your Android (see donwnload link on top of the article) or from the market :

- Install the host windows application (see download link on top of the article) or this skydrive link or this GDoc link
- On the configuration panel, enter the path to the ADB program. ADB is part of the Android SDK. The installation includes the minimum files required.
- Add tunnels. Each tunnel is composed of a name, an Android port (low port like 80 can't be used), a host IP and a host port (can be different from the android port)

HTTP proxy
If Tethering is a technology that allows you to use the mobile internet connection on your PC, this tool gives you the opposite. It's a sort of Reverse Tethering.
You can now surf on your mobile (using the internet connection on your PC) through the Usb tunnel and via a proxy.
If you are on a company network, ask your administrator what IP adddress and port he is using for the proxy. In some cases it can be the default gateway (run ipconfig command at the DOS prompt to find out what the default gateway is).
If you are on a private network and you have no clue about the proxy adress and port, you can use a public proxy (do search for "Public proxy" on the internet). To help you out, here is link to a list of proxies.
Another possibility is to install a local http proxy server like squid.
Step 1 : configure the windows part. Since low ports can't be used, you should use a different high port for the android and another port for the host.
Sample configuration for a company network : (192.168.xxx.xxx) on port 80
Sample configuration for a public internet proxy on port 8080
Step 2 : Connect he USB cable (of course). Click the refresh button to display your device in the device list then click connect. The Android Usb tunnel service will start in the background. A connection icon will be added on the notification pannel.
Step 3 : Setup your browser to use a proxy. Depending on the version of your Android OS, it's possible to define a http proxy in the advanced wifi settings menu (Not tested, available in Android 2.2).
If you don't want to change the proxy each time (or have an older Android), it's perhaps better to install another browser that lets you specify a proxy.
I tested it with Opera mobile ( Here is an article with some screenshots) :
- Enter about:config in the address bar
- Expand the proxy line
- Enter 127.0.0.1:8080 in the HTTP server and HTTPS server text box
- Click "Save"
It may work with Firefox (not tested). I didn't find any information for proxy settings for skyfire
Step 4 : Enjoy! enter any URL on your browser. Your firewall may detect that AndroidTool.exe is trying to access the internet. Give him the rights to access the proxy.
In this screenshot, you can see the number of active connections , closed connections, total bytes transfered (to and from)
I checked with an internet speed test. It's just a little bit slower.
History
May 2011 : First version
发表评论
2NOloW There as definately a lot to find out about this subject. I like all of the points you made.
HnoX1m Very good blog post. I definitely appreciate this site. Stick with it!
2vSZBQ I truly appreciate this blog article.Thanks Again. Want more.
ELVmzz You certainly put a fresh spin on a subject that has been discussed for years.
pHPf64 Wow, that as what I was looking for, what a stuff! present here at this website, thanks admin of this site.
1Ep7wa there right now. (from what I ave read) Is that what you are using on your
LlwsBN It as best to take part in a contest for probably the greatest blogs on the web. I will advocate this site!
5Yhvzo I value the article.Much thanks again. Awesome.
Zljqud posts. Stay up the great work! You recognize,
42XIvV You made some decent points there. I looked on the internet for the issue and found most people will approve with your blog.
AYtoA6 You have made some decent points there. I checked on the internet for more information about the issue and found most people will go along with your views on this web site.
fbvikH Would you be taken with exchanging links?
ZLhShv Very good information. Lucky me I ran across your site by chance (stumbleupon). I have book-marked it for later!
5e3rWv I was able to find good info from your content.
2TBhbu Pretty part of content. I just stumbled upon your website and in
LFXTuv I truly appreciate this blog post.Really thank you! Keep writing.
lyhDO1 Loving the info on this web site, you have done outstanding job on the posts.
RRsrhR This awesome blog is really entertaining as well as amusing. I have discovered a bunch of helpful things out of this source. I ad love to visit it again and again. Thanks a lot!
aXER5h Pretty! This has been an incredibly wonderful post. Many thanks for supplying these details.
lgnILD You might have an incredibly good layout for your blog i want it to make use of on my website also
g2eJG1 Wow, great blog post.Much thanks again. Really Cool.
4Aul0d In fact, the most effective issue about this film is how excellent it is actually as an epic quest film instead of how hilarious it as.
BCIDMt This is one awesome blog.Really thank you! Really Great.
5cKsfS This particular blog is without a doubt educating and besides factual. I have discovered a bunch of useful stuff out of this blog. I ad love to return again and again. Thanks!
t2vz39 Superb Article My brother suggested I might like this web site. He was totally right. This post truly made my day. You can not imagine simply how much time I had spent for this info! Thanks!
B7rr33 Very nice blog post. I certainly appreciate this site. Thanks!
FRbApe post and if I could I wish to suggest you few interesting
NfDpi7 Way cool! Some extremely valid points! I appreciate you writing this write-up and also the rest of the website is very good.
rDtuYa My brother suggested I might like this website. He was totally right. This post truly made my day. You can not imagine simply how much time I had spent for this info! Thanks!
Outstanding quest there. What happened after? Good luck!
Ec9yZD This blog has lots of very useful stuff on it. Thanks for sharing it with me!
RsuXij Time period may be the a lot of special tool to, so might be the organic options. Internet looking is definitely simplest way to preserve moment.
Ku5UZV Thank you for what you might have. This really is the very best submit IaаАабТТаЂааАабТТаБТve study
WM1DgN or guest authoring on other blogs? I have a blog based upon on the same topics you discuss and would love to have you share some stories/information.
KT3wd0 Thank you ever so for you article post.Really looking forward to read more. Really Cool.
gTZX5Q Thanks for sharing, this is a fantastic article.Thanks Again. Much obliged.
ioN9Vx
qBSpgD
TY7U67 So good to find someone with genuine thoughts
6usbo5 Very good blog.Much thanks again. Much obliged.
7GNw2R This excellent website really has all the information and facts I wanted about this subject and didn at know who to ask.
zeMfdW Say, you got a nice article.Much thanks again. Great.
NfAz71 Fantastic article post.Really thank you! Will read on...
Bpa6s6 Your location is valueble for me. Thanks! cheap jordans
AOnqO5 A big thank you for your blog article.Much thanks again. Cool.
4JbKCL As a Newbie, I am continuously searching online for articles that can aid me. Thank you
VLJvTV Thank you for the auspicious writeup. It actually was a amusement account it. Look advanced to more brought agreeable from you! However, how could we keep up a correspondence?
Z6fmIG My brother recommended I might like this web site. He was totally right. This post truly made my day. You can not imagine simply how much time I had spent for this info! Thanks!
TmUfCL Well I sincerely enjoyed studying it. This article offered by you is very practical for accurate planning.
CQMbAW Wow! This could be one particular of the most helpful blogs We've ever arrive across on this subject. Actually Great. I am also a specialist in this topic therefore I can understand your hard work.