Skip to content

SOCKS4, SOCKS4a & SOCKS5 Proxy

Every Proxy provides a versatile, high-performance SOCKS proxy server that automatically negotiates between SOCKS4, SOCKS4a, and SOCKS5 protocols on a single listening port.

Operating at the transport layer, it serves as a transparent TCP and UDP relay—allowing other devices to forward raw application, gaming, and web traffic through your Android phone without requiring root permissions.


Technical Overview

Unlike an HTTP proxy which processes application-layer web headers, a SOCKS proxy operates at the session layer (Layer 5). It establishes direct, bidirectional TCP and UDP conduits without interpreting or modifying the underlying data payloads:

  • Auto-Negotiation: A single listening port (default 1080) automatically handles SOCKS4, SOCKS4a, and SOCKS5 client handshakes simultaneously.
  • Full UDP ASSOCIATE (RFC 1928): Complete support for SOCKS5 UDP relay. Enables clients to associate and forward real-time UDP datagrams (VoIP, DNS, gaming, WebRTC) across multiple destinations concurrently.
  • Remote DNS Resolution (SOCKS5): Allows clients to offload domain name resolution (DNS) directly to the Android device, preventing DNS leaks and bypassing local DNS blocks.
  • Transparent Relay: Outbound TCP streams and UDP datagrams originate directly from your phone's active connection (Wi-Fi, 5G, or active Android VPN).
  • Dual-Stack IPv4 & IPv6: Full support for both IPv4 and IPv6 target addresses.

mDNS Hostname Discovery (every-proxy.local)

Never worry about changing DHCP IP addresses or tethering gateway subnets when connecting client tools and devices.

The SOCKS proxy features integrated Multicast DNS (mDNS) broadcasting:

  • Zero-Configuration Address (every-proxy.local)

    Configure client applications (Telegram, Firefox, SSH, cURL, Git, games consoles) to connect directly to every-proxy.local:1080 instead of entering changing numerical IP addresses.

  • Subnet & Hotspot Resilient

    Whether tethered over a 4G/5G mobile hotspot (192.168.43.1), home Wi-Fi (192.168.1.x), or office Ethernet, every-proxy.local automatically resolves to the correct active local IP address.

  • Independent Control

    Toggle hostname broadcasting on or off at any time in the SOCKS proxy's Edit settings. When active, every-proxy.local:<port> is displayed directly on the card.

  • Automatic Sleep

    The mDNS responder only broadcasts while the SOCKS server is actively running. When the proxy is toggled off, mDNS immediately terminates to conserve battery.


Protocol Comparison

Feature SOCKS4 SOCKS4a SOCKS5 Every Proxy Support
TCP CONNECT Full support across all versions
UDP ASSOCIATE Full SOCKS5 UDP relay support
IPv4 Support Full support
IPv6 Support Full dual-stack support (v5)
Domain Resolution Client Only Remote DNS Remote DNS Resolved on Android phone
Authentication None None Username/Password RFC 1929 Username/Password

Always Prefer SOCKS5

For maximum privacy and compatibility, always configure your client applications to use SOCKS5. SOCKS5 provides both remote DNS resolution and full UDP datagram forwarding, preventing your local network from inspecting or restricting your traffic.


Configuration & Usage

1. Enable the Server

  1. Open Every Proxy and select the Server tab.
  2. Toggle the SOCKS Proxy switch to ON.
  3. Note your connection details:
    • Host: Your assigned local IP address (e.g. 192.168.43.1 or 0.0.0.0).
    • Hostname: every-proxy.local (if mDNS broadcasting is enabled).
    • Port: The listening port (default is 1080).
    • Auth: Indicates whether authentication is enabled.

2. Configure Your Client Device

Enter the SOCKS details into your client application or operating system:

Parameter Recommended Setting Alternative (Numerical IP)
Proxy Type SOCKS5 (or SOCKS4) SOCKS5
Proxy Host every-proxy.local <phone-ip> (e.g., 192.168.43.1)
Proxy Port 1080 (or custom port) 1080
Proxy DNS Enabled (Resolve DNS remotely) Enabled
Authentication Username / Password (if enabled) Username / Password (if enabled)

Client Configuration Examples

# socks5h:// forces remote DNS resolution through Every Proxy
curl --socks5-hostname every-proxy.local:1080 https://icanhazip.com

# With authentication
curl --socks5-hostname user:pass@every-proxy.local:1080 https://icanhazip.com
# Route SSH connections through Every Proxy
ssh -o ProxyCommand="nc -X 5 -x every-proxy.local:1080 %h %p" user@server.example.com
# Configure Git to use SOCKS5 with remote DNS for all HTTP/HTTPS operations
git config --global http.proxy socks5h://every-proxy.local:1080
git config --global https.proxy socks5h://every-proxy.local:1080
# Linux / macOS
export all_proxy="socks5h://every-proxy.local:1080"

Features & Customization

Tap the Edit Icon on the SOCKS Proxy card to adjust advanced settings:

  • Broadcast Hostname (mDNS)

    Broadcasts every-proxy.local over multicast DNS so secondary devices can connect without typing changing IP addresses.

  • Username & Password Authentication

    Implements RFC 1929 authentication. Connecting clients must provide a valid username and password before TCP tunnels are opened.

  • Custom Port Binding

    Change the default port 1080 to any port between 1025 and 65535 to avoid conflicts with other local networking services.

  • Interface Binding

    Bind to 0.0.0.0 to accept connections across all available network adapters, or lock the socket to a single IP address (e.g. Wi-Fi only or Hotspot only).

  • Power Save Mode

    When bound to a specific IP, automatically powers down the proxy server when that network interface disconnects to save battery.

  • Auto Start on Boot

    Ensures the SOCKS proxy server launches automatically whenever your phone restarts.


When to Use SOCKS vs. HTTP

  • Full UDP & Datagram Support

    Unlike HTTP proxies which are limited to TCP, SOCKS5 fully supports UDP forwarding (UDP ASSOCIATE). This enables online gaming, VoIP calls, DNS queries, and media streaming over the proxy.

  • Non-HTTP Applications

    SOCKS is ideal for protocols other than web browsing, including SSH terminals, FTP clients, IRC, and messaging services (e.g., Telegram).

  • Bypassing Local DNS Filtering

    With SOCKS5, the client passes domain names directly to Every Proxy to resolve on the phone's mobile connection, bypassing local network DNS filters.

  • Encrypted Traffic & Privacy

    Because SOCKS is a raw transport conduit, SSL/TLS certificates and encrypted streams pass through completely unaltered with zero certificate warnings.

  • Combined with PAC Server

    For Apple devices (iOS, iPadOS, macOS), pair SOCKS with the PAC Server for set-and-forget automated routing.


Developer Diagnostics

In the Developer Edition, monitor live SOCKS traffic directly on your phone:

  • Active Connections Inspector: See which local devices are currently connected, their target IP/host, and their active socket state.
  • Diagnostic Session Log & JSON Export: Track full SOCKS4/SOCKS5 handshakes, inspect individual UDP destination endpoints, view datagrams sent/received, and export comprehensive JSON telemetry.

Learn more about Developer Edition Features