|
The problem is where to post the zip file.
A link to skydrive or google doc is finally not a good solution. No one is noticied when new version is posted.
I can update the codeproject article to update the zip file, but users need to login to download.
It's same if I post on XDA-developers.
Embedding the files on the APK itself is also possible, but the user need to copy from the sdcard to the PC. The APK will grow and take too much memory.
Maybee the best solution is to create a second APK just for that purpose. Run it once to store the zip on sdcard then uninstall the APK.
I am still working a version 2 (for root users).
Thierry
|
|
|
|
|
Does it mean that corrupted or outdated ADB.exe is being included in this article's file download link? In that case, what's the use of this article, then?
|
|
|
|
|
hai theirry
i have used your tool but when ever i make a connection, message in opera mobile is connection closed by the remote server.In android tool
Http proxy 8081 waitng 117.204.115.156:81 active connection 0 closed connection 15
|
|
|
|
|
Try using aurora firefox, works great.
|
|
|
|
|
Ugh, i finally managed to make my android communicate with my PC, but when i access any page i get
HTTP/1.0 404 Not Found.
I have a Samsung Galaxy Fit S5670.
The tunneling service is working on my phone.
Also, on the PC side i have data transfer ( A->H : 1099, H->A368)
Here's my setup
Android Port : 8081
Android HTTP and HTTPS : 127.0.0.1:8081
Host IP : 192.168.1.254:80 ( my default gateway )
|
|
|
|
|
Ok, i managed to set up a proxy on my PC and i use it. :P
|
|
|
|
|
As you can guess, my phone is SGS2. In the PC tool, my phone does not show up whereas in my Device Manager, the devices Samsung Mobile USB Modem and Samsung Android ADB Interface show up, so I assume the drivers are OK (Kies also installed and fires up on connecting the USB cable, albeit with a complaint that I need to connect in PC Suite mode or some such). USB debugging is enabled. What else do I need to do?
My office network uses leased line connection where IPs are like 10.179.22.x. There's no proxy server, gateway (router IP) is also of the same series, but ending in 1, 65, 129 etc. So what should be my host address and port?
I just installed Opera and set proxy IP to 127.0.0.1:8080 for both http and https. Dont know if that's OK.
But first, my device needs to show up! Please help
OK, so no responses so far, so I'm adding 2 new questions :-
1. My PC is a WinXP machine. Would I need to also install tethering drivers?(http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=182134)
2. If my phone doesn't show up, does it just mean that its a driver problem or do the IP addresses in config tab of the PC app have anything to do with it?
Hope someone will respond this time around!
|
|
|
|
|
try another adb.exe version, the one that comes with the program is bullshit, excuse my french "Thierry Parent", so I got the latest version and its working like a charm.
|
|
|
|
|
Thanks for the info, but where can I download the better adb.exe from?
|
|
|
|
|
Here is the link : [^]
But this install the full developer package (take some place on your hard drive).
Take the files you need (updates files with same name) then uninstall it.
I will find another solution for next version.
Thierry
|
|
|
|
|
Yeah, searched, found the link yesterday, but then its a roundabout and time-consuming way just to get a bunch of files needed by your app. Simplest thing would be to update your package files right here for everyone's benefit. You might call it Version 2 or some such. Hoping it'll be done.
|
|
|
|
|
Finally i managed to make it work problem was on adb.exe, now i can surf on internet with my mobile via usb
Now i was wondering... is it possible to use ur great program together with a tool like Connectbot to route all traffic to a single port? would it help to access, for example, to the market?
I was looking at this link but not sure if this can be applied to ur tool ) and if so, how should i configure connectbot according to you?
http://android.stackexchange.com/questions/6571/ssh-internet-through-connect-bot[^]
thx for all, Thierry!
|
|
|
|
|
hi.
I am working on a second version for ROOT phone.
The name will change from "Usb Port Forwarding" to "Usb Reverse Tethering"
No more need to use a proxy. Should work also for market.
Maybe in 1 or 2 weeks
Thierry
|
|
|
|
|
thx for the info Thierry
|
|
|
|
|
I am directly cradling the device on the machine and i don't have 2G/3G and WiFi connectivity to my machine. The desktop and the android client do successfully connect.
Now if there are no 2G/3G or WiFi connectivity to the device - how do I set the proxy settings? All the applications I see and you've recommended have a way to set proxy settings. I can't seem to figure out a working way that my app can be coded to use the tool's proxy server (127.0.0.1) and port (8010 - I configured for this number).
I've even tried this
Settings.System.putString(getContentResolver(), Settings.System.HTTP_PROXY, "127.0.0.1:8010");
I know this could be out of scope for this project, but I went ahead and asked this because it's remotely related and that's how most people who wish to test their app in "reverse tether" mode should code to.
|
|
|
|
|
You should have at least one network card.
Can you enter this at dos prompt :
ADB shell
When the # sign appears, enter this command :
netcfg
You should have something like this :
lo UP 127.0.0.1 255.0.0.0 0x00000049
svnet0 UP 0.0.0.0 0.0.0.0 0x000000d1
ifb0 DOWN 0.0.0.0 0.0.0.0 0x00000082
ifb1 DOWN 0.0.0.0 0.0.0.0 0x00000082
usb0 DOWN 0.0.0.0 0.0.0.0 0x00001002
sit0 DOWN 0.0.0.0 0.0.0.0 0x00000080
ip6tnl0 DOWN 0.0.0.0 0.0.0.0 0x00000080
#
This is my config with wifi and 3g disabled
As you can see, you have a network card "lo" for localhost on 127.0.0.1 where http network communications can be forwarded. My tool will transfers them to host via the usb.
Next version, for rooted users, will allow you to use the browser without specifying proxy.
Thierry
|
|
|
|
|
Hi Thierry,
was wondering if your application can also work with a Linux host instead of a Windows one?
Great useful app by the way, thanks for that.
Luca
|
|
|
|
|
Sorry. It's not possible.
My knowledge of linux is limited to android
Thierry
|
|
|
|
|
Well, actually I don't think it's too difficult. Basically, what does the Windows host app do?
If it does just port forwarding, in Linux this can be done by using iptables. The thing I'm not sure how does the app on the phone know that it can use the connection on the host? I mean to make it aware that there is a connection it can use?
Thanks for the fast reply,
Luca
|
|
|
|
|
The windows application is quite complex : all communications from and to the android are serialized to a single port (opened by the host, not android), adding an header to know what to do.
18 messages are needed to handle full TCP communications :
Create android server waiting on a specific port,
Client connected, client connection accepted, client connection refused,
client message, server message
client disconnect, server disconnect, ...
Thierry
|
|
|
|
|
I see. So it's quite complicated in fact, it is not just some network configuration automation as I first thought.
As far as I understood it is a almost a "USB datalink layer" (over USB instead of i.e. Ethernet) driver you've written.
Luca
|
|
|
|
|
Works Great On Galaxy ACE
|
|
|
|
|
Dear Thierry,
This isn't a question of the usbportforwarding but I didn't have any email address of yours.
There were two big things that were out of the box working with Windows Mobile that were not there in Android, one was the reverse tethering that you have managed to solve, quite brilliantly I may add. The second was the ability to control the device from the computer once it is connected via usb.
There are a couple of solutions out there but they all involve rooting the device to work. I have spent quite a bit of time on the topic and I know that it is possible using a service Android built in for testing called Monkeyrunner
I have been able to pass command line instructions to the monkeyrunner service to perform touch actions however I don't have the expertise to write an application to stream the buffer from the device to computer screen and capture the inputs to pass to Monkeyrunner.
What do you think, sounds practical ?
Cheers,
Vikram.
|
|
|
|
|
|
Hi Thierry,
I've been trying to get this working, but i'm doing something wrong.
I downloaded the windows application as well as the Tracetool app. Followed the directions provided by you for the adb.exe... Connected the USB Port and hit the refresh button. But my Device is not showing up in the list. Can you please help
|
|
|
|