socks5_proxy
2.1.2, released 5 weeks ago by an unverified publisher
SOCKS5 proxy server and client for Dart with support for authentication and chaining.
What it does
Provides a SOCKS5 proxy server (TCP and UDP) and client (TCP) implementation. It enables developers to run local proxy servers, chain multiple proxies together, authenticate connections with passwords, and route HttpClient traffic through SOCKS5 proxies.
AI-written summary of version 2.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to route HTTP traffic through a SOCKS5 proxy in your Dart or Flutter app.
- You want to build your own SOCKS5 proxy server within a Dart environment.
- You require proxy authentication or proxy chaining.
Skip it when
- You only need standard HTTP/HTTPS proxy support without SOCKS5 functionality.
- You are looking for high-level REST API clients.
Strengths
- Supports both TCP and UDP for servers and TCP for clients.
- Includes features for server/client password authentication and proxy chaining.
- Easily integrates with standard Dart HttpClient.
Weaknesses
- SOCKS5 clients only support TCP.
- Limited documentation outside of README and basic code examples.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
import 'dart:convert';
import 'dart:io';
import 'package:socks_proxy/socks_client.dart';
void main() async {
final client = HttpClient();
SocksTCPClient.assignToHttpClient(client, [
ProxySettings(InternetAddress.loopbackIPv4, 1080),
]);
final request = await client.getUrl(Uri.parse('https://example.com/'));
final response = await request.close();
print(await utf8.decodeStream(response));
client.close();
}Alternatives
Packages that do the same job and could replace socks5_proxy.
- dart_mcp
A Dart library for building Model Context Protocol (MCP) servers and clients.
87Compare - vmodal_sdk_flutter
Typed VModal API client for Flutter to upload videos and search moments by meaning.
67Compare - ftpconnect
Interact with FTP, FTPS, FTPES, and SFTP servers to upload, download, and manage files.
72Compare - dart_valkey
A robust, type-safe Dart client for Valkey and Redis-compatible servers.
67Compare
Works with
Packages commonly used together with socks5_proxy: ones it builds on, ones built on it, and its own family.