Android SOCKS5 Proxy Server: What It Is and How to Use It
A SOCKS5 proxy server is usually something that runs on a computer or in a data center. It can also run on an Android phone, and that turns out to be a practical way to share the phone's mobile data with other devices on the same Wi-Fi network. This guide explains what SOCKS5 is, why you might run it on a phone, how it works together with Android's local hotspot, and how to connect each type of device.
What is SOCKS5?
SOCKS5 is a general-purpose proxy protocol. A client (a browser, an app, or a system-wide tool) connects to the proxy and asks it to open a connection to some address on its behalf. The proxy makes that connection and passes data back and forth. SOCKS5 works for any TCP connection, and it also supports UDP through a feature called UDP ASSOCIATE, which is used by DNS and by some newer protocols such as QUIC.
Unlike an HTTP proxy, SOCKS5 doesn't need to understand the traffic it carries. That makes it a good fit for sharing a connection: websites, games, messaging apps and file transfers can all go through it.
Why run a SOCKS5 proxy on a phone?
- Share mobile data with other devices. A laptop, tablet or second phone on the same Wi-Fi network can send its traffic to the proxy, and the phone forwards it over its mobile data connection.
- Works with many clients. Browsers, operating systems and many apps already support SOCKS5, so desktops often need no extra app.
- Everything stays local. The proxy runs on your phone. Traffic goes from your device to the phone and out through its mobile connection, without a remote server in between.
- No root required. A regular Android app can run a SOCKS5 server.
How it works with LocalOnlyHotspot
Other devices need a network path to the phone. Tether Link Utility gets that path from Android's LocalOnlyHotspot feature (available since Android 8): the system creates a Wi-Fi network with a generated name and password. On its own, a LocalOnlyHotspot gives connected devices access to the phone but not to the internet. The SOCKS5 proxy fills that gap: devices on the local Wi-Fi connect to the proxy's IP address and port, and the proxy forwards their connections over the phone's mobile data.
In the app, tap START SERVER. When the hotspot and proxy are running, the screen shows the IP address and port, and Show QR Code displays a code with both the Wi-Fi details and the proxy address.
Connecting clients
First, every client joins the phone's Wi-Fi network. Then it needs to be told to use the proxy:
- Android: install Tether Link Utility on the other phone too and scan the QR code. On Android 10 and newer it joins the Wi-Fi automatically, then routes the phone's traffic through the proxy with Android's VpnService (a local VPN interface, no remote server). See Share Mobile Data From Android to Android With a QR Code.
- Windows: set SOCKS5 in Firefox, or use a proxy extension such as FoxyProxy in Chrome or Edge. To route all apps and DNS through the proxy, not only the browser, run sing-box in TUN mode.
- macOS: enter the IP and port under System Settings, Network, Wi-Fi, Details, Proxies, SOCKS Proxy. For all apps and DNS, sing-box in TUN mode is the more complete option.
- Linux: use your desktop's network proxy settings or an application's SOCKS5 option; sing-box also runs on Linux.
- iOS and iPadOS: iOS has no built-in SOCKS5 setting, so use an app that supports SOCKS5 proxies, such as Shadowrocket or Potatso Lite.
Step-by-step instructions for each platform, including a sing-box configuration file, are in How to Set Up a SOCKS5 Proxy on Windows, macOS & iOS.
Security notes
- Local network only. The proxy listens on the phone's local hotspot network. Only devices that have joined that Wi-Fi network can reach it, so share the Wi-Fi password (and the QR code, which contains it) only with people you trust.
- SOCKS5 doesn't encrypt. The protocol forwards traffic but doesn't encrypt it. Your Wi-Fi link to the phone is protected by the hotspot's WPA2 or WPA3 security, and beyond the phone your traffic is as protected as the sites and apps you use make it. Prefer HTTPS sites and apps that use encrypted connections.
- Stop the server when you're done. Stopping it closes the hotspot and the proxy.
Limits and costs
The free version of Tether Link Utility allows 1 connected device at a time and shows ads. Pro allows up to 5 devices without ads. All data used by connected devices comes from the phone's mobile plan and counts toward it, and carriers set their own tethering rules, so check your plan's terms before sharing a lot of data.
Tether Link Utility
An Android app that shares your phone's mobile data with your other devices through a local SOCKS5 proxy. No root, no account, no remote server.
See how it works