Socks5 proxy from iOS
How to set up a SOCKS5 proxy from an iOS device?
Using Shadowrocket (Recommended)
- Download Shadowrocket from App Store
- Add a SOCKS5 server configuration:
- Server: your-proxy-server.com
- Port: 1080
- Username: your-username
- Password: your-password
- Enable the proxy
Command line usage
# Using curl with SOCKS5
curl --socks5-hostname localhost:1080 https://example.com
# Using ssh as SOCKS5 proxy
ssh -D 1080 user@proxy-server.com
Verify proxy is working
curl --socks5-hostname localhost:1080 https://api.ipify.org
This should return the IP address of your proxy server, not your device’s IP.