Run SOCKS proxy on Android.
(This is more of a reference than a blog post.)
The goal is to browse the internet from a PC using the phone's mobile data through a hotspot, as if the traffic was coming from the phone.
- Install Termux
- Note: I had to use the one from F-Droid since the Google Play version caused an "access denied" error somewhere during the process below.
- Create hotspot
In Termux:
# Download Glider
# https://github.com/nadoo/glider
wget 'https://github.com/nadoo/glider/releases/download/v0.16.3/glider_0.16.3_linux_arm64.tar.gz'
tar -xvzf glider_0.16.3_linux_arm64.tar.gz
cd glider_0.16.3_linux_arm64
# Get IP of the phone
ifconfig
# Start Socks proxy
./glider -verbose -listen :8443
- Connect PC to hotspot
- Configure web browser to use the phone IP and port 8443 as a SOCKS5 proxy