|
Great job. I think that the missing piece is detection of android devices by PC wich deals with a very wide range of hardware drivers (I suppose). Personally I use a third party freeware to get my tablet identified (ADB -TABLET or something alike should be viewed on Device Manager), then comes your wonderful master piece. So idea is combing your apps with a some Sync. software.
|
|
|
|
|
I have installed AndroidTool.exe (which I believe is portable exe and can be launched by just clicking this file) and have entered Myconnection details as host and adroid port 8080, IP: 127.0.0.1 and have also launched Tracetool service.apk on Android Samsung Note II device. There it shows services running and asking us to connect from Windows PC. On PC side when I connect, it says error: No device found. On PC side Refresh Devices doesn't show any device. What error have I made. At my place broadband net ADSL router is connected to LAN switch and my PC and other PCs here are also connected to the same LAN switch. All PCs here are able to use internet. I wish to do reverse tether to Note II and use net on it. We have no proxy set up here. All PCs have gateway and default DNS IP entered as 192.168.x.x which is the LAN side IP of the ADSL router. Pls guide.
|
|
|
|
|
It's just that your device is not recognized by windows.
When you connect Note II to windows using usb cable, check the notification
and tap the usb notification.
Switch between MTP and PTP.
If you device is rooted, I strongly sugest you to move to the next version
on xda http://forum.xda-developers.com/showthread.php?t=1371345[^] since this version is limited by the OS itself
and is more complicated to use
|
|
|
|
|
I did that PTP / MTP thing but no success. Currently my device is connected as MTP and it is getting recognized.
I am using Win XP SP3. My Android device Samsung Note II is not rooted and do I not wish to root it.
My device is recognised by other s/w. e.g: Explorer whereby I can see device and its memory card's contents and share files. It is also recognised by another PDA data sync sw: Mobisynapse which recoginses my device and does the PDA data sync successfully.
The ADB Driver that I have installed is: SAMSUNG_USB_Driver_for_Mobile_Phones.exe taken from:
http://www.mobisynapse.com/fileroot/driver/SAMSUNG/SAMSUNG_USB_Driver_for_Mobile_Phones.exe
Should I change or update this driver with the driver downloaded from that xda link?
What I wish to know is what IP addresses should I set. In my set up as I said all my PCs and ADSL Broadband router are connected to one switch and all PCs have gateway and DNS server address as 192.168.1.1 and internet works fine on all PCs. Please guide me what config I should set up in AndroidTool.exe.
Doing reverse tethering is important for me as we can not use wifi in our enviroment and use of mobile phone's internet is not allowed. Hence only way to use net on mobile devise is through reverse tethering.
Also we do not have any proxy server settings here. Pls guide me how to do if its necessary for reverse tethering to work.
Pls guide.
Jayesh Valia
modified 13-Sep-13 5:38am.
|
|
|
|
|
So your mobile is detected.
Does he appears when you start the tool ?
As explained, without root, it's more difficult to surf.
You HAVE TO connect to a proxy. If your company don't have a proxy,
chose one here : http://www.freeproxylists.com/[^]
Note that these proxies are not always stable or don't work.
It's way root is better. No configuration is needed.
|
|
|
|
|
Thanks for quick reply. Yes my mobile is detected and showed there in that PDA sync sw I mentioned about and am able to do all things which that sw is meant to do.
Thanks again for helping me out. I will study proxy thing you have suggested and try to make this thing work, if possible.
If tunneling worked then apart from browsing, can we do FTP, WhatsApp, online chat sessions, non web based emailing (like MS Outlook / Outlook express - setting up POP, SMTP), etc. from the Android device?
I understand that without root its difficult. Just for my knowledge, how risky is Rooting? I read somewhere that any error will make phone dead. Could you suggest safe and simple way to do rooting, for my knowledge.
Also pls let me know: Will 'Connectify Lite' works with Win XP SP3? I have read that it will give Ad Hoc Wi-Fi hotspot (for Win XP SP3 machines) and not Access Point type Hotspot like Win 7.
Jayesh Valia
|
|
|
|
|
Hello,
Thanks for your great work. I known, source code is not available. But for my personal application, I need to be able to send messages from Android device to my PC using USB connection. Can you provide me the solution to do that ? With your work, it's possible (tried and approved) but now, I want to integrate it to my own application.
Thanks in advance !
|
|
|
|
|
It's not possible to open a port from android to the PC.
The opposite is possible. You can open a connection from the pc to android.
See a few post before (27 june) : "Want to understand".
It's quite complex.
|
|
|
|
|
I use to Play Multiplayer gaming through USB tethering on PC via Samsung Galaxy Note 2.
I done as written. Device was connected. I got information that I need to open port 3074 UDP and TCP both so I entered it and in Host address first I left it what is written then changed it to local IP address but both didn't worked port was closed even after that and it was showing 0 active users?
Any Help?
Thank you.
|
|
|
|
|
Wow, this tool is fantastic.
It works on my Galaxy S4 for all brwosers, even Google Chrome.
|
|
|
|
|
to setup
1. run android tool
2. run adb.exe
3 (in android tool, setup your config
->Android server port: 8080
->host address: 127.0.0.1 (your pc webserver ip address 127.0.0.1 is the standard)
->host port: 80
4 goto your phones browser
5 enter 127.0.0.1:8080
6 your webserver should appear
7
|
|
|
|
|
Hi, My wifi is not working.. the service centre says that they have to change the motherboard.
So I stumbled on reverse tethering via USB for unrooted phones, but after following the instructions in detail I cant see my device on the Andriod tool, I have refreshed it several times. Have enabled USB Debugging, the address to adb.exe is correct and the tracel tool on S2 is running too. I can also view my S2's folder in my PC, so at least it is connected. I also checked in device manager, I have the latest Samsung Android ADB interafce drivers. Cannot figure out where I am going wrong.
|
|
|
|
|
when you connect the usb cable, check your S2 notification and switch the usb mode : PTP or MTP
On my S1 I have to use MTP and on S3 it's PTP
|
|
|
|
|
tried everything but all in vain
can u provide step by step procedure
what to write in port and host address?please
|
|
|
|
|
Well i want to share my android webcam to pc over USB with app Ip Webcam , What port i need to open and how ? pls help
|
|
|
|
|
sir i have to connect my device in USB storage mode or media device mode..?
|
|
|
|
|
Can you provide me or us with source or just explain with which commands it work for i can do it myself?
|
|
|
|
|
I don't want to give the sources but I can explain the principe.
It's not possible to open a port from android to the PC.
The opposite is possible. You can open a connection from the pc to android.
The first step is to create a single bydirectional tunnel between the pc and android.
To do it, you must tell to ADB to allow the communication.
The command is the folowing : ADB forward tcp:xxx tcp:yyy
So the windows app can open a <local> commnication on port xxx.
An android server must be listenning on <server> port yyy.
Both ports can be same number, like 9000 .
You can start the android server using "ADB shell am start xxx" command.
Pc can send commands to android, and android can send commands to pc
To forward the port android 8080 to Pc port 8085 (or same number) :
Second step : create a server socket for EACH port you want to forward.
When an application open a connection to this port, you must create a message "connection opened on port 8080" and send it to the pc using the tunnel. The pc will try to open a connection on localhost:8085
You have to handle a lot a message :
- PC to android : start server listening on TCP port 8080
- Android to PC : connection id 100 opened on port 8080
- PC to android : connection id 100 ok
- PC to android : connection error for id 100
- PC to android : connection time out id 100
- Android to PC : block of bytes for connection id 100
- PC to android : block of bytes for connection id 100
- Android to PC : connection closed for id 100
- PC to android : connection closed for id 100
This is not the full list of message.
You can have a lot of connections on the same port. So you must need to a connection ID
This is a VERY VERY long development process. Considere using UML for use case and message flow.
But, if you just want to open a single port (no forwarding) from pc to android,
just the "ADB forward" and start android server is needed.
|
|
|
|
|
Thank you it's veru helpfull.
|
|
|
|
|
I want to share my internet connection with my phone Xolo Q800, but it is not detecting my device, please help me out to use my PC internet connection on my mobile.
Everytime getting the error : no device selected....
My phone is not rooted, so pls take this into account before answering
|
|
|
|
|
the play store does not work and the status in my pc shows "not connected"
|
|
|
|
|
sir i have defualt gateway so pls tell me what would be number of tunnels...
i have two tunnels: one is tracetool,second is defaultgateway with android server port and host port as 8092 in both tunnels..
"android usb tunnel" shows two devices one is emulator-5554 device and second is localhost:5555 device
and doesnot show my android device what should i do?? pls tell me..
|
|
|
|
|
Great job, we were looking for such a solution for quite a while (though if you think about it, Windows mobile had this option out-of-the-box since years ago).
Anyways, the steps worked fine for Firefox. However, since we needed all apps on device to reach the internet (whatsapp, facebook, etc...) we googled and found somewhere/someone saying to create a new APN in the device's Settings -> More Settings -> Mobile Networks. We created one and assigned proxy 127.0.0.1 and proxy port 8080 and enabled Mobile Data. And it worked this way. Whenever you need to revert to your telco's internet, just change the APN you're using.
modified 9-May-13 2:53am.
|
|
|
|
|
Hello
what is your APN setting exactly !!?
my HTC phone connected but i just can use firefox ,but APN setting didn`t work for me
please tell us more about APN settings !
Thanks
|
|
|
|
|
Hi,
I just created a new APN, and filled the 4 following fields only:
Name (anything should work here)
APN (anything should work here)
Proxy 127.0.0.1
Port 8080
I selected the newly created APN (to make it the current default) and I enabled Mobile Data.
On the Android Tool on my PC (Windows 7), I had created 2 connections:
1- a connection with Android Port 8080 and Host address IpAdressOfMyFirewall:8080
2- a connection with Android Port 8093 and Host address IpAdressOfMyFirewall:8080
Now the Mobile Data (3G) icon appears on the phone as if you are connected, but actually it is using your PC's connection.
HTH
|
|
|
|