Skip to content
class method

SOCKSSocket.new

SOCKSSocket.new(host, port) => socket

Opens a SOCKS connection to host via the SOCKS server.

The SOCKS server configuration varies by implementation

When using the Dante libsocks/libsocksd implementation it is configured as SOCKS_SERVER env var.

See: manpages.debian.org/testing/dante-client/socksify.1.en.html for full env variable support.

See also #close also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0