USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Tried it and it's not working for me...
Or maybe i didn't setup squid right.
I'm not so good on ubuntu OS
I tried making a bridge connection on windows...the networks
The network seems to be connected but no internet connection...
Is it necessary to have Ubuntu OS?
Maybe some another how-to will help:
http://forum.xda-developers.com/showthread.php?t=793102
To setup squid to work:
type in:
sudo gedit /etc/squid/squid.conf
In that file find the section called
# ACCESS CONTROLS
Under the section find the line
#Recommended minimum configuration:
and add this line next to it
acl all src all
then find the section
# TAG: http_access
Under this section find the line
#Default:
and add the following line to look like
#Default:
http_access allow all
Close the file and restart squid as:
sudo start squid
That should setup squid to share your internet on all clients.
If required, reboot.
You can try out a similar approach on any other distro other than ubuntu.
i tried several searches about this topic, but none of them succeeded,
any update on this?
can i install ubuntu in my Win7?
syruz said:
can i install ubuntu in my Win7?
Click to expand...
Click to collapse
Well, you can virtualize it in Virtual box. It's free for personal use.
by the way what is the squid your talking about?
@ TS
maybe you can provide us with the link for ubuntu and squid?
Come on.. if you don't already know what ubuntu and squid are there's no point in trying this.
Ubuntu = Linux, that's another operating system. Squid is a proxy.
You ashould at least have the decency of Googling those for yourself..
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Hi guys,
Do you know why I wouldn't be able to see "USB tethering" option? No matter what I did so far, all I can see is the "Portable Wi-Fi hotspot" option and that works fine. But I need to use the USB Tethering!!!
Thanks for the help!
If someone is having the same problem as me (ie usb tethering mode not visible) just use a program called togglesettings lite. It can turn on the usb tethering for you. Now the reverse usb tethering works for me like a charm. Peace!
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Thank you for sharing this trick. But i dont have netcfg utility, since i use ubuntu maverick 10.10, it is not in source list. is ther any other way to do "netcfg usb0 dhcp"?
This is by far the easiest solution I've found to reverse tether. Thanks!
jadeiceman said:
This is by far the easiest solution I've found to reverse tether. Thanks!
Click to expand...
Click to collapse
Sorry and wich is the solution ????
syruz said:
@ TS
maybe you can provide us with the link for ubuntu and squid?
Click to expand...
Click to collapse
sudo apt-get install squid
This should install squid.
netcfg is not there on recent ubuntu versions not even software list but you can configure via app indicator at right but still i can't use reverse tethering although i followed you pretty well.
netcfg is a utlility on the phone... u need to run that command at the terminal of the phone not on your computer. (get a terminal emulator from the market)
Wow I'm feeling stupid.Will give it a go now.
Related
1) download pre8 version here:
http://code.google.com/p/android-wifi-tether/downloads/list
2) start the app the first time to create config files
3) than run:
/data/data/android.tether/bin/tether start 1
4) now open wifi tether app and check logs
Thanks! I will try it and then add it to my rom!
grande suoko !
thanks suoko
sorry, i'm newb..
what do you mean by
"run: /data/data/android.tether/bin/tether start 1" ?
kongkows said:
sorry, i'm newb..
what do you mean by
"run: /data/data/android.tether/bin/tether start 1" ?
Click to expand...
Click to collapse
there's a bug in the gui as always
you must run that command from terminal with root user
i use "better terminal emulator"
I cannot stop it and turn on wifi!!!
???
try "run: /data/data/android.tether/bin/tether stop 1"
Thank you for the method !
Tether Wifi works fine.
But I'm obliged to return the code ("/data/data/android.tether/bin/start tether 1) every time I restart my Tattoo.
It's normal?
Thank you for your help.
Sorry for my bad English, I'm french =p .
Sorry for noob question.
What is wifi tether?
Google is your friend ! =P
Wifi Tether allows use your phone as a router (modem).
Wifi Tether uses the 3G connection, and translates into wifi signal.
I don't know if it's clear, but I'm not very good in English and some words escaped me.
it's clear... i dont need this for now, but is very usable. thx.
I followed the steps but still cannot use tethering
My PC can connect to the Tattoo and get the IP from it, and that app alerted to be connected by a client, but the PC still cannot browse webpage
ww_boy6 said:
I followed the steps but still cannot use tethering
My PC can connect to the Tattoo and get the IP from it, and that app alerted to be connected by a client, but the PC still cannot browse webpage
Click to expand...
Click to collapse
Same here, I tried connecting through a netbook and a iPod Touch, both of them see and connect to the phone, but are unable to use internet.
Same problem
I am using Modaco R2. for HTC tattoo.
I installed wireless_tether_2_0-pre10.apk.
My laptop able to connect to Tattoo & give Ip address.
I tried to browse webpage... but it unable to go into internet.
BUT both, Tattoo & laptop showed that they are connected together!!!
Tattoo's access control even show my laptop's name correctly!
Using laptop command prompt, I tried to ping Default Gateway (192.169.2.100)
It showed 100% data LOST!!!.
What happen???
Download the latest apk (2.0.1), it works.
Hi Guys,
I have an HTC Tattoo and want to do wifi Tethering. My phone is not rooted yet and i cannot find instructions to do this (most of the instructions are for adding new roms). I do not want to add a new rom, i just want to tether my 3G connection by turning my phone into a wifi hub.
phiber123 said:
My phone is not rooted yet and i cannot find instructions to do this
Click to expand...
Click to collapse
Please search this forum before posting.
awesome, it's working.
Wifi Tethering start successfully, but when i try to connect to the network, Tattoo don't assign the ip to the PC and the connection failed.
Wich ip i've to use for gateway and dns? Wich subnet mask?
Thank you
I try to run without root access but not work.
Later on I root my Tatto and app start working with 1.6
Now not have WiFi card to try but when i get one i infform you about res.
Hi people, i don't have wifi in my house so i tried to create a wifi acces point on my laptot but in my mini pro doesn't appear my wifi.
can anyone help me?
I use win xp and ubuntu 11.04
thanks and sorry for my bad english (i'm spanish)
dare i ask what your settings are, such as...
ssid; or if its set to even broadcast?
encryption or no encryption?
is ics on?
what band(s) are your broadcasting off your notebook b/g/n?(think the mini only has b/g)
are you broadcasting from like the attic down to the basement?
My wifi chip is Intel PRO/Wireless 3945ABG
The connection is shared and without encryption.
I used this tutorial: http://www.youtube.com/watch?v=ndYUkSdCQ3Q&feature=related
allc said:
My wifi chip is Intel PRO/Wireless 3945ABG
The connection is shared and without encryption.
I used this tutorial: http://www.youtube.com/watch?v=ndYUkSdCQ3Q&feature=related
Click to expand...
Click to collapse
anyways i'm not sure about all your settings but when i was running an adhoc network i defiantly did not have network authentication set to shared i had it set to open the video from what i could bare to watch also doesn't show you how to enable ics so google/youtube that for another 10 minute video if you need too :roflcopter:
Use connectify
connectify doesn't work. it says that is for win7
Ou! Sorry)))
Can I connect to inernet via usb? or bluetooth?
[Tutorial] How to share PC internet with the x10 mini...
allc said:
Hi people, i don't have wifi in my house so i tried to create a wifi acces point on my laptot but in my mini pro doesn't appear my wifi.
can anyone help me?
I use win xp and ubuntu 11.04
thanks and sorry for my bad english (i'm spanish)
Click to expand...
Click to collapse
Maybe you tried Creating Ad-Hoc. Android does not show adhoc networks. There is also a Workaround. Thanks to blackplatypus. Details at
http://www.xda-developers.com/android/android-ad-hoc-wireless-network-support/
Click to expand...
Click to collapse
. But it is not sure, if it will work or not.
So there is another way, Make your pc act as an Access point.
Easy Way: First (Did not work for me. )
Easy Way: Second (Have not tested it.)
Hard Way:
Not sure if it will work on XP.
1. Go to Start -> Run, Type services.msc
2. Find if you have the "Routing and Remote Access" [/B]
If it is ther then Procceed. But if you dont have it, You can not make a virtual Wifi Router.
3. Right Click on "Routing and Remote Access", Select Properties, Select Automatic from the Dropdown menu, click on OK. Then restart your PC.
4. After Restarting the PC, Copy and paste the code below in any text file and save it as “.bat” file.
Note: replace yourSSID with any SSID you like and yourKEY with any password you like.
Code:
netsh wlan set hostednetwork ssid=yourSSID key=YourKEY keyUsage=persistent
netsh wlan set hostednetwork mode=allow
netsh wlan start hostednetwork
Double click on it.
You can see an Extra Wireless Connection in your “Network Connections” folder.
5. Right Click on your main internet connection, go to Properties, select Sharing, Put tick on First box and select the extra Wireless Network Connection.
Done.
Now you can use internet through this.
allc said:
Can I connect to inernet via usb? or bluetooth?
Click to expand...
Click to collapse
See this thread:
http://forum.xda-developers.com/showthread.php?t=1196723
Click to expand...
Click to collapse
If you have any problem, Feel free to contact me.
So, I downloaded an adbWifi widget, and followed the instruction and - woohoo - it works.
I'm trying to understand how is this secure (if it is at all).
I click with widget and it tells me an IP and a port. I tell adb/Eclipse this ... and it connects. So how come someone out there port-sniffing can't do the same, and connect to my phone?
GaJ
GreenAsJade said:
So, I downloaded an adbWifi widget, and followed the instruction and - woohoo - it works.
I'm trying to understand how is this secure (if it is at all).
I click with widget and it tells me an IP and a port. I tell adb/Eclipse this ... and it connects. So how come someone out there port-sniffing can't do the same, and connect to my phone?
GaJ
Click to expand...
Click to collapse
What wifi network are you using? If it's your own wifi network you control the security with a WEP key or hopefully something better. For example I have my own wireless router at home and I use WEP (to lazy to use something better).
By the way, which adb wifi program did you download and where are the instructions? I would like to try it.
-Vince
Nothing stops anyone on the same network from connecting to your wireless adb session if they know the port.
The best you could do is use a non standard port instead of the default 5555
I know the toggle I use doesn't give the option to choose a port but it is possible and asking the dev as a feature request might get the option. I have never bothered because I only use it on my secure network and don't know anyone irl that would know what adb is.
To start wireless adb with any port from a shell run "adb tcpip <port>" to restart the daemon on the specified port.
I personally think we should be able to password protect adb for if our phones are stolen.
Hoi,
can someone please tell me (us), HOW the Eclipse config must be modified ?
Right now i type in a dos-box the command adb connect <MyTCP>:5555.
When i click RUN in Eclipse it finds the device and all works fine.
I want to use this method permanently, so i am interested in the Config-Solution because my device didn't suck so much energy from the batterie as in WiFi-Mode (awesome effect, isn't it ?)
Doei
If you've never given permissions to a particular computer, it can't connect.
Hi all. What I need is a way to control Android device (s) from PC via Wi-Fi. I found a lot of apps (and Desktop programs) to do it, but I didn't found a way to View OR control the Android device WITHOUT ROOT. I work on the company which asked me to find a way to do this without root with their Android devices. After googling a lot I started to think that where is no way to do this, because either way I need to root them . Is it true or maybe there is somewhere an app which could do this? It doesn't care if it's paid or not.
I have downloaded and tester these apps:
MyMobiler - Doesn't work because when I restart Android device, app doesn't start WiFi, just keyboard mode only. I need that when the app starts it should run itself and start WiFi automatically.
VMLite VNC Server - Don't know why but it didn't worked for me. Just cannot start server from the browser.
Thank you for any responses and appreciate any help.
What error messages do you get from vmlite vnc server? Make sure you enable USB debugging. We have tens of thousands of users using our app, and your device should work.
Well, actually now I tried to launch VMLite VNC one more time and IT WORKED (don't know how, because earlier I tried it and I was unable to enter to VNC Viewer in the Browser). So yeah, in this case it works perfectly now, but I just realized, that I have no way of connected more Android devices. Because what I need to do is to connect multiple Android devices to computer with USB (as I understand it's required for the first time) and when use it with WiFi. For now I see that I only capable of connecting single Android device with desktop program and everytime I want to connect to Android deice from computer, I need to connect it via USB (where is no way to save Android devices to use it any time I want to via WiFi). Or am I wrong? And it is a problem because in my company all Android devices are far away from each other. Anyway, thank your for such an awesome app, I really don't know how it is capable of connecting to my Android device WITHOUT ROOT (because I found like 10 apps, read a lot of forums, and every solution was with ROOTED devices, I am very interseting of the actual app functionality), but thank you.
You can connect to multiple devices using multiple USB cables. There is a drop down list to display devices, and you choose one by one to start the server. Alternatively, you can write some scripts to auto start the vnc servers.
There are quite some testing companies using our app this way to automate regression tests.
Alternatively, you can write some scripts to auto start the vnc servers.
Click to expand...
Click to collapse
Can I get more information about it? Thank you.
Basically you can automate the starting process using adb command:
adb shell "am start -a android.intent.action.MAIN -n com.vmlite.vncserver/.MainActivity"
adb shell /data/data/com.vmlite.vncserver/files/vmlitevncserver
Deimantas007 said:
Can I get more information about it? Thank you.
Click to expand...
Click to collapse
Thank you for this script (it's very cool, I didn't know this kind of stuff before), but it requires USB connection as well.
I googled a few things and found this app - ADB Wireless (no-root) on Google Play Store. Basically it connects ADB via WiFi and I don't need no USB cable and connection with it. But VMLite Android App Controller program on my Desktop doesn't recognize it (it requires USB connection). Can I actually connect Android device with PC with this method or I am missing something and there is no way of doing it with this method? Thank you (I promise, this is the last question from me, no more dumb questions).
I don't think it will work for you. You mentioned your android device will reboot, right?
If your device gets rebooted, you will have to use a USB connection to a PC. the ADB wireless app has same requirement.
Steps to get it working: (from ADB Wireless app page)
1. Enable USB Debugging on your phone.
2. Connect your phone via usb cable to your PC.
3. Run adb tcpip 5555.
4. Run ADB Wireless (no root).
5. Connect to the IP address.
Deimantas007 said:
Thank you for this script (it's very cool, I didn't know this kind of stuff before), but it requires USB connection as well.
I googled a few things and found this app - ADB Wireless (no-root) on Google Play Store. Basically it connects ADB via WiFi and I don't need no USB cable and connection with it. But VMLite Android App Controller program on my Desktop doesn't recognize it (it requires USB connection). Can I actually connect Android device with PC with this method or I am missing something and there is no way of doing it with this method? Thank you (I promise, this is the last question from me, no more dumb questions).
Click to expand...
Click to collapse
huisinro said:
I don't think it will work for you. You mentioned your android device will reboot, right?
If your device gets rebooted, you will have to use a USB connection to a PC. the ADB wireless app has same requirement.
Steps to get it working: (from ADB Wireless app page)
1. Enable USB Debugging on your phone.
2. Connect your phone via usb cable to your PC.
3. Run adb tcpip 5555.
4. Run ADB Wireless (no root).
5. Connect to the IP address.
Click to expand...
Click to collapse
What's right. It needs to connect my phone via USB. But I thought that maybe there is a way to automate this process, I mean maybe there is a solution to TURN DEBUGGING MODE between phone and pc programs via WiFi connection (not USB) and communicate with VMLite VNC Server program on startup. Either way, again, thank you for your software (app). I will say to my boss that we need to stay where we are at the moment. It's just awesome to have an app which doesn't require ROOT.
I want to control my android device loaded with lineageos 8.1 remotely from my laptop from the browser. I have tried airdroid, but i am not able to use the remote control feature when i am offline, it only works over the internet, is there any fix for this? also please suggest any alternatives. I have root access using magisk.
motolora 1656565 said:
I want to control my android device loaded with lineageos 8.1 remotely from my laptop from the browser. I have tried airdroid, but i am not able to use the remote control feature when i am offline, it only works over the internet, is there any fix for this? also please suggest any alternatives. I have root access using magisk.
Click to expand...
Click to collapse
Definitely want to be using scrcpy. It uses adb as it's connection method. So if you can wifi adb to your devices you can remote control it.
If you need sound, it gets slightly more cumbersome. But sndcpy works well in tangent.
Astoras said:
So if you can wifi adb to your devices you can remote control it.
Click to expand...
Click to collapse
Please guide me how can I do this. I have enabled TCP/ip mode in developer menu.
motolora 1656565 said:
Please guide me how can I do this. I have enabled TCP/ip mode in developer menu.
Click to expand...
Click to collapse
Some phones have an option in Developer settings. It normally explicitly says wifi adb. If you don't have the option, you'll need a root app or elevated terminal to activate it.
The app is faster to use if in a normal context.
Find on on the playstore. Just search wifi adb.
Then on your computers terminal, which has adb installed properly, type "adb connect {your phone's ip address}"
Once it successfully prompts and you accept the connection on your phone you are ready to use scrcpy.
You can find tutorials on how to install both adb and scrcpy.
But the most user friendly, if on widows, is to first install a repository called Choco. Again, look up how to do so.
Then, simply type these commends in an administrative PowerShell:
choco install adb -y
choco install scrcpy -y
If all of this seems overly complicated. It is a one time setup. And all of these tools are excellent to have in the future if you are into Android and software.
After these steps are completed, rember you first have to establish an adb connection and then type scrcpy into your terminal.
Ok, Thanks a lot!!!!
motolora 1656565 said:
Ok, Thanks a lot!!!!
Click to expand...
Click to collapse
- Download scrcpy.zip
- Unzip to the dir of your choice
- On your phone: Developer settings --> Enable USB Debugging
- Connect with a cable
- Run scrcpy-noconsole.vbs
Should work (also for android 12)
If you want to use this over IP, let us know
biontx said:
- Download scrcpy.zip
- Unzip to the dir of your choice
- On your phone: Developer settings --> Enable USB Debugging
- Connect with a cable
- Run scrcpy-noconsole.vbs
Should work (also for android 12)
If you want to use this over IP, let us know
Click to expand...
Click to collapse
Oeps, the previous scrcpy.zip contains convctctytdl.exe ... you won't need this:
This is used to convert all youtube files (movie, list, etc...) to mp3
You can delete this file
This is the windows x64 version
You don't need internet as your phone is connected with a cable
Thank you everyone for your help!!!
Scrcpy is successfully installed and is working fine!!!
I took help from this forum and the official GitHub repo https://github.com/Genymobile/scrcpy
Thanks everyone
i have another request, please help!
capture mobile display as a "live video file"