Tether an Android Phone Using Proxoid
![Dmitri Popov Dmitri Popov](/var/linux_magazin/storage/images/online/blogs/productivity-sauce/275404-17-eng-US/Productivity-Sauce.png)
Productivity Sauce
The Android Market features a few tethering applications, so it should be easy to use your Android phone as a wireless modem. Well, that's how the theory goes, anyway. In practice, however, these applications require root access to your phone's system, so you have to "root" your phone before you can tether it. Rooting an Android phone is not for the faint of heart, though, and there is the ever-present risk of bricking your device. Meet Proxoid, a proxy server application that lets you use your phone as a modem without hacking its system. Making Proxoid work does require a few steps, but the entire process is simple enough even for uninitiated users. Here is how to make Proxoid work with an Ubuntu-based system.
Start with installing the Proxoid application on your Android phone from the Android Market. On your phone, navigate to Settings - > Application -> Development and enable the USB debugging feature. On your Ubuntu machine, create the 90-android.rules file:
gksudo gedit /etc/udev/rules.d/90-android.rules
Add the following line to it:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
Save the file and quit the text editor. Download and unpack the latest release of Android SDK. Connect the phone to the Ubuntu machine via USB and start the Proxoid application. Open the Terminal, navigate to the tools directory in the Android SDK folder and run the following command:
./adb forward tcp:8080 tcp:8080
The proxy server should now be running, but to be able to use it with Firefox, you have to modify the browser's proxy settings. In Firefox, choose Edit -> Preferences and switch to the Advanced -> Network section. Press the Settings button in the Configure how Firefox connects to the Internet group. Select the Manual proxy configuration option, then enter localhost in the HTTP Proxy field and 8080 in the Port field. Press OK to save the settings and close the window. Now you can browse the Web using the created connection.
Comments
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
Linux Market Share Hits New High
For the first time, the Linux market share has reached a new high for desktops, and the trend looks like it will continue.
-
LibreOffice 24.8 Delivers New Features
LibreOffice is often considered the de facto standard office suite for the Linux operating system.
-
Deepin 23 Offers Wayland Support and New AI Tool
Deepin has been considered one of the most beautiful desktop operating systems for a long time and the arrival of version 23 has bolstered that reputation.
-
CachyOS Adds Support for System76's COSMIC Desktop
The August 2024 release of CachyOS includes support for the COSMIC desktop as well as some important bits for video.
-
Linux Foundation Adopts OMI to Foster Ethical LLMs
The Open Model Initiative hopes to create community LLMs that rival proprietary models but avoid restrictive licensing that limits usage.
-
Ubuntu 24.10 to Include the Latest Linux Kernel
Ubuntu users have grown accustomed to their favorite distribution shipping with a kernel that's not quite as up-to-date as other distros but that changes with 24.10.
-
Plasma Desktop 6.1.4 Release Includes Improvements and Bug Fixes
The latest release from the KDE team improves the KWin window and composite managers and plenty of fixes.
-
Manjaro Team Tests Immutable Version of its Arch-Based Distribution
If you're a fan of immutable operating systems, you'll be thrilled to know that the Manjaro team is working on an immutable spin that is now available for testing.
-
Nitrux 3.6.0 (“ie”) Available for Download and Install
The latest version of the systemd-free Linux distribution, Nitrux, has been released for general usage and includes the beta of the upcoming NVIDIA 560 graphics driver.
-
Vanilla OS 2 Orchid Available for Download
The latest iteration of Vanilla OS (Orchid) has been released and uses a hybrid Debian base.
Link to platform-tools ADB Everyone is missing!
unpack in android SDK folder
Link to platform-tools
navigate here and run
./adb forward tcp:8080 tcp:8080
there you go! the new SDK makes you launch the android shell in the tools folder. I had a hell of a time seeing as how i am in an RV and have not ethernet and could only download mac ADB. I used the motorola permission in the android rules and all has worked great. Im looking to forward all traffic but I am a novice with android !
proxoid tether
Motorola use:
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have an HTC Android phone - use this rule instead of the one above:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have the Samsung Galaxy Android phone, use this rule instead of the one above:
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have the Sony Ericsson X11 Android phone, use this rule instead of the one above (Thanks to Steven from the comments):
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
adb command problem
when I tried to execute ./adb command, it says no such command or directory.
In the SDK i downloaded, there is a txt file which says :
"The adb tool has moved to platform-tools/
If you don't see this directory in your SDK,
launch the SDK and AVD Manager (execute the android tool)
and install "Android SDK Platform-tools"
Please also update your PATH environment variable to
include the platform-tools/ directory, so you can
execute adb from any location."
when I tried to execute android, it says : exec:113 java not found.
What should I do?
pls help.
Beware
"No such file or directory
So, obviously I'm missing something pretty basic, if you all are satisfactorily working with this.
But if anyone has a hint it would be greatly appreciated.
Thanks,
Mark
If you cant find no adb command in tools directory
To install it, after you install the SDK, go to the "tools" directory and execute “android”. A GUI will show up then click on “Available Packets” and under “Android Repository” , mark "Android SDK Platform Tools" . Click on "Install Selected". Done!
Regards,
Alexandre Andrade
http://www.androidnews.com.br
Like others I see no adb command in tools directory
Downloaded latest Android SDK.
Doesn't work for me
Any idea?
plan's cap
working on Ubuntu 10.10
tether
Bluetooth
I wonder if something like this could work over Bluetooth
Great!
I created a simple script to set this up for you - Also includes a Launcher on the Desktop.
http://www.humans-enabled.c...her-your-verizon-droid-as.html
Works fine with opensuse 11.2 as well
thanks for the description - I got it working with opensuse 11.2 and opera as a browser.
First I received the error
./adb forward tcp:8080 tcp:8080
* daemon not running. starting it now *
* daemon started successfully *
error: device not found
but then the permission hint worked.
Capitalism finally working
Tether Android
network proxy
Why Proxy
Thanks!
THANK YOU
I would like to say THANK YOU! I was struggling with this problem since I bought my G1 (1 year) and now finaly I made it, thanks to Proxoid!
Again, thanks a LOT!!
./adb problem
unable to execute ./adb: No such file or directory
same thing if i try sudo ./adb, but ls -l adb gives:
-rwxrwxrwx 1 petter petter 340920 2010-02-05 23:53 adb
probably a newbie mistake, but I have no idea where to go from here.. any help is appreciated!
Chrome
Is there a way to forward all IP traffic through the proxy? I would like to be able to use SSH, Ping, etc. I setup Google Chrome similar to how the instructions for Firefox are posted. I used the pull down menu "Customize and control Google Chrome" and chose options. A new dialog window pops up with three tabs. I chose "Under the Hood". There towards the bottom you see "Network" and below that a button "Change proxy settings" I then select the "Manual proxy configuration" radio button and select the checkbox "Use the same proxy for all protocols" Enter "localhost" for the "HTTP proxy" and port "8080" was selected already.
There is a button at the bottom called "Apply System-Wide" but I still cannot use my Virtual Machines and other ports. Any ideas???
insufficient permissions for device
For those who are getting the "insufficient permissions for device" error, try this:
1.on phone:
settings->applications->development; enable USB debugging
start proxoid
2.on laptop (after installing Android SDK and adding 90-android.rules)
cd android-sdk-linux/tools
./adb kill-server
sudo ./adb start-server
./adb devices
./adb forward tcp:8080 tcp:8080
3. Change network settings in your browser to manual proxy configuration with HTTP Proxy=localhost and Port=8080
All credit goes to iefbr14 at this post: http://androidforums.com/ho...s-tested-linux.html#post136254
teather droid
I can't follow it.
error: cannot bind socket
Hi There,
unfortunately it not working for me.
Everything is fine until:
./adb forward tcp:8080 tcp:8080
* deamon not running. starting it now *
* deamon started successfully *
error: cannot bind socket
Trying it via sudo doesn't help either. Is there anyone who knows what to do?
TIA Julian
Not a real solution
On Android it seems all this is not possible. Having to configure clients and then only being able to use a proxy for access instead of full internet connectivity is too much of a pain and a real downgrade.
Worked perfectly - Thank you.
thanks
works perfectly, thanks!
Works beautifully!
/etc/udev/rules.d/90-android.rules file as described on another forum (http://androidforums.com/ho...ing-systems-tested-linux.html) as follows
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct} =="0c01", MODE="0666",OWNER="brett"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct} =="0c02", MODE="0666", OWNER="brett"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct} =="41db", MODE="0666", OWNER="brett"
Just changed the OWNER="brett" to OWNER="myusername" and yahoo!
Sending this comment over 3G!
THANKS!!!!!
Working well but unable to log into encrypted? sites.
No luck - until now
http://androidforums.com/ho...ting-systems-tested-linux.html
The secret is in the udev rules file.
sudo needed
sudo ./adb
the sudo command is needed for many administrative functions
No luck
I think the sticking point is with the adb command. When I ran it, I got the following output.
$ ./adb forward tcp:8080 tcp:8080
* daemon not running. starting it now *
* daemon started successfully *
error: insufficient permissions for device
$
Any thoughts? I'll check back.
Why the problem with providers?
Luckily I don't have a problem tethering and I never go over my cap. My provider blocks SIP which again is a sin in my eyes, what I run is my business since I also pay for a cell plan in addition to a data plan. This is why I didn't have any kind of cell phone until Android came along and brought some hope to this brutal industry. Still sucks being in N.A. but much better than before.
Motorola Milestone
SUBSYSTEM=="usb", ATTRS{idVendor}=="41d8", MODE="0666"
Tethering
According to http://www.t-mobile.com/Tem...p.aspx?PAsset=Pln_Lst_DataPlan , tmobile allows up to 10gb per month.
But, as you said, be careful. The same page specifically says tethering is prohibited.
Regards,
Christopher
Tethering
Reload configuration
sudo /etc/init.d/udev reload
and then it will all work.
New Linux phone from Vodafone
http://www.linuxphone.ru/fo...f=5&t=909&p=4339#p4339
The screenshots show social activity possible on phone.
depressing
depressing
Fortunately it's not like this in (most of) Europe, where I happen to live. We don't even have a word for tethering in my language, because it's something we consider so obvious. I've been "tethering" for pretty much all of this millenium and never gave it a second thought.
If a device is restricted in this way, I simply won't buy it - thanks but no thanks, especially to Apple!
Tether an Android Phone Using Proxoid