socks5-udp-associate

command
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Example SOCKS5 UDP client using PacketConn.

This program demonstrates how to use the SOCKS5 dialer to perform a UDP ASSOCIATE and send/receive UDP packets (DNS queries in this case) through the proxy.

It sends multiple DNS queries to 1.1.1.1 and prints the responses, showing that the same PacketConn can be reused without re-establishing the UDP association.

To run this example:

  1. Start the SOCKS5 server example (e.g. examples/socks5 or UDP associate server)
  2. Then run this program

The SOCKS5 server must be listening on 127.0.0.1:1080.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL