Android usb tethering linux On the computer, which network interface is used for connection to the network created by "USB tethering" of the phone? Is it automatically connected to the network, or shall I run some command? Q&A: Why does USB Tether require root? We need to be able to set network configuration, configure the Linux firewall to manage packets, and bind to ports for DNSMasq. Depending on the version of Android you have to reboot your cell phone. 2. You should see on linux or windows a new network interface. I compared the packages between the 5. Android app Fixed a tethering issue on some devices. Connect the device via USB and run the command on Linux terminal – su - OR sudo -s adb start server Once your device is unlocked, return to the terminal and run this command – adb kill-server Using How to connect Android device over USB to SSH into a laptop running Ubuntu 1. It works as an automatic Ethernet connection on Fedora. This does not set up DNS or NAT masquerading, but is sufficient to make the device accessible at 192. 421027] usb 1-1: USB disconnect, device number Issue How to tether the Internet Connection from an Android Phone connected to RHEL? Environment Red Hat Enterprise Linux 8 Red Hat Enterprise Linux 7 Red Hat Enterprise Linux 6 An Android smartphone can share its mobile connection with multiple methods. Get major and minor of your device with lsusb command: If you are having problems with your WiFi connection, maybe you can use USB Tethering first to solve the problem. You have to use iptables to route the traffic from port 22 Apr 2, 2020 · 0 In most cases people would like to tether internet connection from an Android device to Linux, but I need to tether connection from Linux to Android. One good way to do it is the iptable modification. I had been tethering with Debian Wheezy and Arch Linux with no issues and assumed that this kind of easy handling would spill over into Centos Apr 10, 2019 · Hello, I'm an archlinux newbie trying to do an install on my laptop (HP ProBook 6475b). Aug 21, 2024 · 一、什么是USB网络共享? USB 共享网络是一种基于 USB 接口的数据传输和资源共享解决方案,例如 Android设备作为一个usb网卡连接到其他主机,将Android设备的网络共享给主机使用。在Android系统设置中的 “开发者选项” 中,可以找到usb的默认配置选择USB 共享网络的功能, Jun 10, 2019 · On a fresh installation of Ubuntu desktop (ubuntu-18. This Article (the "How to setup Tethering via USB on Windows" section) lists simple ways to share the 3G connection from a tethered phone with other computers. Since USB tethering is a wired method, it also consumes less power than wireless methods for a comparable connectivity quality. The usbN interface is in turn connected to the mobile phone LAN, providing DHCP server, DNS server, and a gateway. 04. , Ltd. Just wake it up and issue command, from tinycore, to "reactivate" connection. Contribute to Genymobile/gnirehtet development by creating an account on GitHub. The following is a video tutorial on how to access the internet on Linux Ubuntu May 3, 2019 · Check Compatibility: Ensure your Android phone supports USB or Ethernet tethering. 5. Also included is a shell script to automate the setup on Linux. Tether your Android or BlackBerry to a computer. I have not seen a cellular provider that limited that method. I have done plenty of research but I stumbled upon so . Go back to home screen and Mar 21, 2014 · Enabling internet connectivity on your phone via your PC. I found my connected device listed as Jul 26, 2021 · With the Linux gadget interface/Android host I can somewhat understand these problems but with the Android OTG port tethering/Linux host I would expect it to route correctly since the Android system is in control of the tethering connection. Feb 15, 2017 · If you're like me, a PdaNet customer running Linux who's sad that there's no build of PdaNet designed for Linux for hiding tether usage over USB Tethering, then fear not! After some research I've devised a plan to hide USB tethering usage from T-Mobile. I open the settings for usb tethering in my android phone, but not see any new interface with ‘ip a’ command. - ssh not working, idk. How could I do this with Ubuntu 11. Download EasyTether drivers. Click here STEP 2: On Nexus One: Connect USB cable and activate USB Tethering. EasyTether for Android and BlackBerry. 2 (Froyo) から USB テザリングと Wi-Fi アクセスポイントテザリングがネイティブでサポートされています。 Feb 1, 2013 · Grant the superuser request on the phone if one appears. 2-desktop-amd64) connecting an Android phone and enabling USB tethering automatically brings up a DHCP configured network adaptor: ifconfig Feb 13, 2021 · Subscribed 119 15K views 4 years ago android linux usb tethering android linux usb tether android ubuntu usb tetheringmore Learn how to combine Wi-Fi and a tethered Android phone on your Ubuntu Linux computer for a faster, more stable connection with Speedify. 15 and 6. I connected phone & activated Sep 28, 2019 · (Android phone got internet access from Ubuntu laptop via cable) That magical program is Gnirehtet (tethering reversed) available as Android app and GNU/Linux desktop programs. 04LTS. The FTP server is Mixplorer and the only problem was to get the right IP from the USB interface. Hook one between your computer and your phone, and when selecting what to do, select "USB tethering" in the options. Open HotSpot app, go to USB tab and enable USB network sharing. 580738] May 20, 2022 · I'm trying to connect my computer to internet via USB tethering with my Android phone but I couldn't make it to work. The computer recognizes the phone model in the wired connection, but there is no internet With my HTC WildFire and my archlinux, I just have to enable USB tethering and then plug the USB cable into both my PC and the device. Is there a utility to connect an ANDROID smart phone via a Mint PC USB that allows the use of the phones internet connection ? Last edited by LockBot on Thu Mar 09, 2023 4:00 am, edited 1 time in total. Dec 27, 2023 · Have you ever wanted to access files and media from your Android phone directly on your Arch Linux computer? Connecting Android and Arch is super handy – you can transfer files back and forth, sync photos, manage phone storage, backup data, and more. This was working fine as interface usb0. Attach your Android device. Most of my computers run Linux and there isn't really much configuration needed because USB tethering "just works". How do I create this USB network interface? Can this be done within Linux or must it be done from the Android phone? Note: If I enable USB tethering on the phone, then a corresponding USB interface is created in Linux. So I tried to instead go with USB tethering from my android phone, found out what the interface name for this connection is Feb 17, 2022 · Question Ethernet (USB Tethering via android) extremely slow on Linux Mint. On your Linux system, run the command ip addr show to find the name of the network interface that corresponds to the USB tethering connection. If you're on Linux, you'll see a new network interface appear (probably called "usb0"). 129: Jun 24, 2025 · A cross-platform tool to enable USB tethering from an Android device to a laptop without interacting with the mobile interface. 5 and the modules-extra was a difference. On the PC side, we create a TUN interface (a "virtual network card" to simplify) to inject and route the traffic of the Android device. Aug 31, 2009 · There are many guides out there on the web for tethering an Android phone to your Ubuntu laptop, so that you can use the phone‚Äôs mobile data network connection when you‚Äôre out of range of wi-fi. Alternatively, you can go to Settings > Connections > Mobile Hotspot and Tethering to enable USB tethering. Get major and minor of your device with lsusb command: Mar 4, 2015 · Steps Install adb and fastboot in your linux system. Tether your Android smartphone with Linux Mint 11. I have been searching with Goo Mar 21, 2025 · I use USB Tethering to FTP to the the phone using a cable and get maximum transfer speeds. テザリング とはスマートフォンのネットワーク接続を使って PC からインターネットにアクセスする手法です。Android 2. Just plug in usb on pc. Jun 7, 2023 · On your Android phone, disconnect and reconnect the USB cable to establish the reverse USB tethering connection properly. Fixed app crashes and hangs. Run syncthing on both PC and smartphone, and configure the IP addresses correctly. We don't need the connected device to use mobile data over USB, but this option will prepare virtual network that we will use. Contribute to cuamckuu/tetherspot development by creating an account on GitHub. Find out how to connect your Linux machine to internet using Android's mobile data via USB, WiFi or Bluetooth. I'm trying to use my phone as a way of interacting with a headless linux box. May 3, 2015 · I'm trying to get USB tethering to work between a Nexus 5 phone (running CM11) and my desktop running Debian 8. sudo apt-get install android-tools-adb android-tools-fastboot Connect your android phone to your PC via USB and enable USB tethering from the settings on your phone. 04, 18. Disconnect and connect the USB mobile port or USB cable. 04? Feb 9, 2018 · Hi, my phone is a Galaxy J5 with model code SM-J500FN running rooted Android 6. Dec 26, 2024 · Here’s how you can set up each method: USB Tethering: To tether your Android phone to your Linux device via USB, simply connect your phone to your computer using a USB cable. Open Network Discovery app, go to Settings menu → Discovery → Discover Method → Ping/c. Connect your Android device to your computer using a USB cable. Tethering didn't work with any of them. 04, 16. To stop USB tethering: Jan 10, 2020 · Version 1. If you have wifi, you can use wifi tethering features, or you can use usb tethering if your pc doesn't have wifi card. Now on archlinux machines. Try another USB cable. I am using a Samsung Galaxy A8 Star Android 10 over USB cable to connect to my laptop running Kununtu 20. I have just plugged my Android Phone in via USB to my Linux systems and chromebooks, I did not need any extra apps. Do Android devices use RNDIS for ethernet over USB even when connected to a Linux host, rather than using CDC NCM? Why? Oct 16, 2021 · For a long time, I've been having this problem where USB tethering wouldn't work. linux distro 2. Select Tethering Mode: Choose your preferred tethering method: USB, Wi-Fi, or Bluetooth. 42. 1 - tested tethering on my laptop (ubuntu) : work as a charm - tested on my archlinux, PC ASUSTeK COMPUTER INC H170M-PLUS, no more usb0 device - uname -a Dec 15, 2023 · Question is: How can I permanently change my USB tethering IP address? Using Android 11 with a known problem of changing IPs. Lsusb outputs Bus 001 Device 057: ID 2a70:9024 OnePlus Technology (Shenzhen) Co. Android mobile phones can behave as an external network interface usbN, connected via the USB infrastructure. Open terminal in your PC and type the commands given below. USB Tether sets everything up manually and needs escalated privileges to do so. I already tried following the instructions on the Android tethering arch wiki page but it didn't work. 3 has been released! The following are the changes in this update. When tethering the phone behaves like a router (wifi on eth0 and the tethered computer on usb0). SM8150-MTP. Connected my mobile, enabled tethering in phone but network icon doesn’t change and internet isn’t available. May 17, 2021 · I am unable to use USB tethering with my android phone on my laptop. Jan 23, 2013 · I have an Ubuntu 12. I connected the phone to the computer via USB and got these messages: [14972. Ensure the cable supports file transfer capabilities. Connect your Android device to your Ubuntu computer using a USB cable. Oct 7, 2020 · I'm trying to understand RNDIS functionality in Android. Android USB reverse tethering with WiFi hotspot. Connection In your android, enable the Settings->Connections->Network connections->Tethering and portable hotspot->USB tethering option, this will create an USB connection to your computer which you can see with ifconfig command on your computer. A notification will show at the top of the screen on your Android device - swipe down from the top of the screen > Touch and hold Hotspot > Turn on USB tethering. Dec 11, 2015 · I connected few smartphones to my laptop (HP Probook 650) via USB. Activated USB tethering and in any case my laptop didn't see the network (I'm using Network Manager). Sep 14, 2023 · Tethering allows you to share your mobile internet with a Linux computer, either through USB or wireless connection. I tested it on Windows 10 and is working fine, but when I tested it on Ubuntu 22. 04 to my Samsung's tethering USB using netplan, someone that can help me? thanks. Server app Fixed a rare bug that causes the app to hang when a device is plugged. Jan 20, 2024 · Connect My Linux PC and my Android smartphone with a USB-c cable Enable USB tethering in my Android smartphone. Verify the connection: Your Android phone should now use your Linux PC’s internet connection. I tried to manually set up connection, so I switched off wireless using the hardware key on laptop. Look @ the interface name which for me is enxf6759e7fbebd this time. Oct 3, 2011 · Published at LXer: This article is about how to tether your Android smartphone with Linux Mint 11 and similar operating systems via USB, meaning how Oct 21, 2020 · Android USB tethering - Tiny/Micro Coresudo udhcpc -i usb0 Common issues: - Connection is dropped, this is very likely your phone's shutting down tethering. Sep 28, 2019 · We can use USB tethering, and give an uninterrupted internet connection to the paired device. Most modern Android devices running Android 14 should support these features. Install Android SDK and set path to adb binary in tether script. Fixed an installation issue on Windows machines with ESET NOD32 antivirus. 168. This tutorial shows you how to use your smartphone's network to access the Internet on your computer by linking them with a USB cable. Only answer I found is How can I permanently change my hotspot tetherin This Python script facilitates the creation of a VNC server and establishes a virtual monitor on your Linux PC. Connect Your Device: Use a USB cable to connect your Android device to your computer. Data Plan: Be mindful of your mobile data plan limits, as tethering can consume a significant amount of data. I don't have an ethernet connection and I can't yet use my laptop's Broadcom wireless card (trouble with b43 drivers, to resolve the issue I just need a working internet connection). Fixed a launch issue on Gentoo Linux. Then on android open Settings, choose more, and tap on tethering & portable hotspot. This tool automates the process of enabling USB tethering using the Android Debug Bridge (ADB). You need to […] Aug 2, 2018 · Configuring Android for reverse tethering At first, from the Android device, go to Settings >> Developer options and enable “USB Debugging”. USB tethering with Android devices will often work automatically on Ubuntu and Ubuntu and Raspberry Pi OS. With this program, without root access at all, we can easily share internet access via USB cable from laptop to smartphone by utilizing USB Tethering in reversed mode. 04 and the latest F Aug 5, 2017 · Connect your pc to your Android phone with a USB cable and on phone's settings. This is the kernel log: //usb set to tethering [1080763. Run with sudo there is the option to share the cellular data connection via the USB cable. May 2, 2020 · It seems that I can only get ADB permissions for my device only while in MTP or PTP mode and NOT in USB tethering mode, which is what I need. 0. Unlike Wi-Fi hotspot tethering, USB tethering typically offers more stable and faster connections and consumes less battery on the phone. That's all now you would get internet connection on pc. It is a way to get internet access in your laptop, on the go. I would connect my phone via USB and switch it's USB mode to USB tethering, and I wouldn't get any internet connection. Tethering is a convenient option when you don't have Wi-Fi or Ethernet network access, and it can be easily set up with Android USB tethering is available since Android 2. Jul 4, 2016 · Hello. if that not work you should try a kernel upgrade. Battery Life: Tethering can drain your phone's battery quickly. How to set up reverse USB tethering on Linux Connect your android phone to your PC via USB and enable USB tethering from the settings on your phone. Jan 15, 2025 · Struggling to get your Linux PC online without Wi-Fi? How to tether any smartphone for reliable mobile internet. Jul 23, 2020 · One of the ways we get around wireless problems is by telling people to tether their phones via USB so that they can go online long enough to find the drivers needed for their devices. Jun 29, 2023 · I have 4G failover via an old Android phone plugged into USB. Mar 30, 2023 · Now in your Ubuntu -> Setting -> Network you should have a new wired connection, just click connect to enable usb tethering. Tap on USB tethering. This part requires admin privileges on Windows (sudo on macOs and Linux). I thought it was my USB cable, but tethering worked normally on Windows. If you are debugging or testing, also disconnect the wireless network. It’s faster than Wi-Fi hotspots, saves battery, and works even without Wi-Fi on your computer. Sep 25, 2023 · On the Android side, we capture all the traffic through a VPN Service, and we tunnel it to the PC via an "Android Accessory" (AOA) USB link. Looking for extra Internet speed and stability? Speedify enables you to combine a USB Cellular dongle with a tethered Android on Ubuntu Linux. But Android support doesn‘t come included in Arch Linux. your android phone must have the option "usb tethering Install Android SDK and set path to adb binary in tether script. Oct 12, 2019 · The android phone creates a separate network for the connected computer, effectively shielding it from any incoming signals. - Prayag2/android-as-monitor-linux Jun 16, 2018 · How can I find out if this is throttling by the carrier in response to USB tethering or if this is a problem with my computer configuration related to USB tethering. In your Android device’s settings, turn on USB tethering. Bring the link up on that interface (ip link set usb0 up), run a DHCP client, and you're all set! If you're on Windows, it will probably Just Work™. more settings click on USB tethering option. This interface is not automatically created when plugging in the phone. May 2, 2022 · I am having problems with the USB tethering function on Samsung Galaxy A12. Feb 3, 2023 · I just used the UI an the android to enable the USB tethering, and it somehow worked without any setting up on the machine side. what to do? Last edited by LockBot on Sat Aug 24, 2024 3:00 am, edited 1 time in total. 1 LTE USB modem and I need small computer to run Linux. For example, the interface might be named usb0 . Feb 23, 2024 · Android USB tethering does not activate by mbmcomputers » Fri Feb 23, 2024 10:12 pm Android USB tethering does not activate the function to send internet from the cell phone to the computer via USB, on Windows it works normally, on Mint it does not activate. Nov 12, 2024 · 2. The purpose is to enable seamless utilization of your Android device as a secondary monitor through either Wi-Fi or USB Tethering. Here is a script that sets up a Linux machine and a USB-connected rooted Android device for USB tethering. Sep 8, 2022 · I would like to TETHER that PC to a ANDROID smart phone to use the cell phones internet connection. Then in a shell as root run the following commands: Requirements: 1. Oct 15, 2025 · Android Tethering Setup on Linux (Ubuntu, Raspberry Pi OS) If the cellular plan on your Android smartphone supports hotspots/tethering, then you can tether your Android phone to your Ubuntu and Raspberry Pi OS device to give Speedify an additional cellular connection. For Android 4. Find out the new network interface that was created on your PC Nov 27, 2020 · I know that when I connect my phone (Google Pixel 3a, Android 11) to my Linux system for tethering, the phone sets the USB connection by default to "Charge Only", and I get a notification that lets me change the mode to USB tethering (and a network interface then suddenly appears on the computer). I have car head unit running Android 8. Exclusive for LQ members, get up to 45% off per month. Mar 27, 2024 · Just installed and updated Tumbleweed. Oct 8, 2022 · Edit: I want to connect to a vnc server on a PC from an Android client via usb tethering. reverse tethering tool ("reverse tether" recommended, but it's not a free app) 4. Jul 18, 2025 · activate USB tethering in settings -> Wireless and network -> More Settings -> portable hotspot and tethering -> USB tethering the NetworkManager identified the mobile phone as network connection and you are ready to go I don't know what Android versions he is talking about, but my Google phone runs Android 12 (2 years old) and usb tethering is just not working with rndis disabled on Linux. Using a suitable USB cable is important for successful tethering, as it will provide a reliable network connection and prevent wireless interference. - Phone is not allowing tethering to be activated, it just charges. Jun 16, 2024 · I use my android phone with the USB cable, is a lot faster and stable than the wifi hotspot. Plug the phone to the computer, then open the settings in your phone > Portable hotspot > USB tethering. With same hardware (phone and pc) using hotspot (wifi) all works fine. Apr 16, 2014 · I have an Android phone (S10+) and am now using it to connect to the internet via USB tethering. When USB tethering is enabled, the phone acts as a USB network interface card (NIC), and your Linux system detects it as a new network device. 04, 20. 0 you can do it settings -> Wireless and network -> More Settings -> portable hotspot and tethering -> USB tethering. After digging a bit, I ran the command "ip addr" to see my network interfaces. May 7, 2021 · I don't know how to connect my laptop with ubuntu server 20. 0 sudo brctl addbr br0 Gnirehtet provides reverse tethering for Android. 10 system on my PC and an Android 4. Since upgrading to Debian 12, the device has been renamed to something completely random and Jul 23, 2024 · After adding the linux-modules-extra package both the RTL88X2 device and the mobile tether began working. 2 "Froyo" and usually provides a more reliable connection than Wi-Fi while being faster than Bluetooth. 3. Open PDANet: Launch the PDANet application on both your Android device and your computer. Is it possible to USB tether an android device using adb through the terminal? Asked 11 years, 11 months ago Modified 5 years, 1 month ago Viewed 34k times Jul 23, 2025 · USB Tethering is an easy and reliable way to share your phone’s internet with your computer using a USB cable. The following tutorial shows you how to set up reverse USB tethering on Linux. rooted android phone (you can use framaroot for one click root or follow a rigorous method available throughout the web, however this is beyond the scope of this tutoria) 3. Aug 10, 2020 · You are going to need: Android with the "USB-PC internet share" option (not the classic USB tethering) iptables or nftables (for masquerade/SNAT) tcpdump iproute2 a dns server on your linux (dnsmasq is quick to set up) 1/ On you android device: got to Settings >> Network connection >> Tethering and portable hotspot >> USB-PC internet share . 0 sudo ifconfig usb0 0. Jun 24, 2023 · In the android phone I set the USB connection to tethering. STEP 3: On Linux Computer, setup a bridge: # usb0 is the new network interface # eth0 is the main interface connected to internet (or a gateway) sudo ifconfig eth0 0. Settings > Connections > Mobile Hotspot and Tethering: Mobile Hotspot USB tethering Bluetooth tethering Ethernet tethering The most simple way is to enable USB tethering. My solution was using an Automate script to turn wifi off for a second, enable usb tether, activate the FTP server, then turn wifi on again. I did have an issue with having a bridge up and the phone not recognizing an USB connection. USB Tethering in Archlinux For this example, i'm using usb tethering. Go to the settings on your phone, enable USB tethering, and your device should automatically connect to the internet. Basically phone is an extra router, depending Connect your Android device to your Ubuntu computer using a USB cable. Tetrd is a simple tool that allows you to share your internet connection from your Android device to your PC and vice versa through a USB cable. A comprehensive guide for Linux users. So you cannot really connect without tweaking the android phone. If you are using a Sep 11, 2025 · The focus of this article is USB tethering with Android devices. Aug 11, 2022 · Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use. Now I would like to share the Internet connection of my PC via USB with my Phone. May 23, 2022 · 2 I turned on "USB tethering" on an Android phone with mobile service, and connected the phone to a Linux computer using a USB cable. But I do recall years ago some of them did have tethering as a 'extra cost feature' . I can't get VNC or connect Jan 8, 2024 · LoadingLoading Click to continue Dec 23, 2012 · Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Aug 5, 2023 · Hi, all! I want to use the USB tethering to make my PC to connect the internet. 1 system on my Galaxy Nexus. 4. bixmylcm wzy wcamg vmvei bhyvbf zzdpzc ltsrc evluzeg aealtgy dfpng jsosfho ljbppvmy rdjsttoq mhuby rdkz