What Is Tethering?
Tethering is the name given to connecting a mobile device to a computer such in order to share the mobile internet.
While some carriers might restrict this activity, these days that is rare. Most smartphones have a data plan which allows tethering, making tethering an attractive way to get online.
Strictly speaking, tethering refers to using a USB cable to share mobile internet. This means that you will need to carry your phone’s USB data cable around if you plan to use tethering.
Wireless tethering is also possible, using Wi-Fi or Bluetooth; this is also known as “wireless hotspot”. In most cases, wireless tethering is easier but there are good reasons to use USB tethering:
- For a reliable network connection
- To keep your phone charged
- Avoid wireless interference
- Prevent wireless sniffers intercepting data
Use the Right USB Cable for Tethering
Before proceeding, you need to be sure that you’re using a USB cable that is suitable for tethering. Not all cables will work for this, as some are designed purely for power. The best way to check that your USB cable is suitable for tethering is to plug it into your computer. Connect your phone and wait for either device to detect the other. If some sort of data transfer or file browsing is available, it is suitable for tethering.
The following methods all require you to connect the mobile device to your PC via USB cable before activating tethering.
How to Tether Android Phones to Linux
If you have an Android device, tethering is straightforward, thanks in part to both phone and PC being Linux-based.
If you want to tether Android to Linux via a USB cable:
- Connect the USB cable to your phone and Linux PC.
- Android will detect the connection—when prompted to Allow access, select Allow.
- In the Notifications find the USB message, and tap it.
- Under Use USB for, select USB tethering.
In most cases, the connection will be automatically established. Check the IP address for your device to confirm it has worked using ifconfig
or ip address
. Look for an option labeled usb0
.
With some distros, you may need to select the USB connection.
- On the Linux system, find the network tray applet
- Click to find the network option with a name like “auto usb0”.
- Select this to connect Linux to your phone via the USB cable.
Don’t have a data plan which allows tethering? Installing a custom Android ROM can help circumvent restrictions.
Want to Tether a BlackBerry Phone?
Depending on how old your BlackBerry is, there are several options for tethering it to a Linux system. If you have a BlackBerry, it is either running:
- Android (since 2015)
- BlackBerry 10 (2013-2018)
- Blackberry OS 7.0 (2011-2013)
For BlackBerry devices running Android, refer to the section above. For BlackBerry 10 and BlackBerry OS 7.0, check below.
To tether phones over USB running BlackBerry 10, start by connecting the phone to your computer. Then:
- Open Settings > Network Connections > Internet Tethering.
- Tap Connect.
- Select USB.
- Enable Internet Tethering.
Want to tether a BlackBerry OS phone to Linux?
- Tap Manage Connections > Network and Connections.
- Find Mobile Hotspot Connections then
- Set up the network credentials.
Whichever method you use, select the usb0 network in your Linux panel if it doesn’t automatically connect.
How to Tether iPhones to Linux
If you have an iPhone with a data plan which allows tethering, you can set up USB tethering.
Unlike Android, however, this doesn’t connect automatically. Instead, you will need alibimobiledevice
, described as a “cross-platform software protocol library and tools to communicate with iOS devices natively.” Head to www.libimobiledevice.org to confirm current compatibility.
If you’re using Ubuntu, libimobiledevice should already be installed. If not, before hooking up your iPhone to Linux, open a terminal and enter:
sudo apt install libimobiledevice6
To connect to the internet through your iPhone:
- Open Settings > Personal Hotspot.
- Enable Allow Others to Join.
All you need to do now is select the connection in Linux. Unlike Android, iPhone devices display as a new Ethernet device, rather than USB. So, look for eth0
or eth1
usually the latter, as eth0
should be assigned to your Ethernet port.
Tethering Linux Phones to Linux
Several Linux mobile operating systems are available. These include a mobile version of Pure OS on the Librem 5, PostmarketOS on the PinePhone, and USB ports, the continuation of Ubuntu Touch.
Perhaps surprisingly, not all of these have reliable options for USB or wireless tethering. For specifics, check the documentation of whichever Linux mobile project you’re using.