Proxy Setup¶
Configure proxy rotation to improve sniping performance and avoid rate limiting.
Why Use Proxies?¶
Proxies provide several benefits for username sniping:
- Avoid rate limiting - Distribute requests across multiple IP addresses
- Improve success rate - Multiple connection paths to Minecraft servers
- Geographic advantage - Use proxies closer to Minecraft servers
- Redundancy - Continue sniping if one proxy fails
Proxy Configuration¶
Basic Setup¶
Add proxies to your config.yaml
:
proxy:
enabled: true
proxies:
- "http://proxy1.example.com:8080"
- "http://proxy2.example.com:8080"
- "http://proxy3.example.com:8080"
rotation_enabled: true
timeout: 10
max_retries: 3
Advanced Configuration¶
proxy:
enabled: true
proxies:
- "http://user:pass@proxy1.example.com:8080"
- "https://proxy2.example.com:3128"
- "socks5://proxy3.example.com:1080"
rotation_enabled: true
timeout: 10
max_retries: 3
health_check:
enabled: true
interval: 300 # Check every 5 minutes
url: "https://api.minecraft.net/status"
load_balancing:
method: "round_robin" # round_robin, random, least_used
sticky_sessions: false
Supported Proxy Types¶
HTTP Proxies¶
Most common and widely supported:
HTTPS Proxies¶
Encrypted HTTP proxies:
SOCKS5 Proxies¶
More versatile, supports UDP:
Proxy Providers¶
Recommended Providers¶
Residential Proxies (Best for sniping): - Bright Data - High quality, expensive - Oxylabs - Good performance, reliable - Smartproxy - Affordable residential proxies
Datacenter Proxies (Budget option): - ProxyRack - Cheap datacenter proxies - MyPrivateProxy - Dedicated proxies - HighProxies - Shared and dedicated options
Proxy Requirements¶
For optimal sniping performance:
- Low latency (<100ms to Minecraft servers)
- High uptime (>99%)
- Good speed (>10 Mbps)
- Geographic diversity (multiple locations)
- Rotating IPs (to avoid detection)
Testing Proxies¶
Built-in Proxy Testing¶
Test all configured proxies:
Test with custom timeout:
Verbose output with detailed results:
Manual Proxy Testing¶
Test individual proxies with curl:
# Test HTTP proxy
curl --proxy "http://proxy:port" "https://api.minecraft.net/status"
# Test with authentication
curl --proxy "http://user:pass@proxy:port" "https://api.minecraft.net/status"
# Test SOCKS5 proxy
curl --socks5 "proxy:port" "https://api.minecraft.net/status"
Python Testing Script¶
import requests
import time
def test_proxy(proxy_url):
try:
proxies = {"http": proxy_url, "https": proxy_url}
start_time = time.time()
response = requests.get(
"https://api.minecraft.net/status",
proxies=proxies,
timeout=10
)
latency = (time.time() - start_time) * 1000
if response.status_code == 200:
print(f"โ
{proxy_url} - {latency:.0f}ms")
return True
else:
print(f"โ {proxy_url} - Status: {response.status_code}")
return False
except Exception as e:
print(f"โ {proxy_url} - Error: {str(e)}")
return False
# Test your proxies
proxies = [
"http://proxy1:port",
"http://proxy2:port",
"http://proxy3:port"
]
for proxy in proxies:
test_proxy(proxy)
Rotation Strategies¶
Round Robin¶
Cycle through proxies in order:
Random Selection¶
Randomly select proxies:
Least Used¶
Use the proxy with fewest recent requests:
Performance-Based¶
Prioritize faster proxies:
Optimization Settings¶
Connection Settings¶
proxy:
timeout: 10 # Connection timeout (seconds)
max_retries: 3 # Retry attempts per proxy
retry_delay: 1 # Delay between retries (seconds)
connection_pool_size: 10 # Max concurrent connections per proxy
Health Monitoring¶
proxy:
health_check:
enabled: true
interval: 300 # Check every 5 minutes
timeout: 5 # Health check timeout
failure_threshold: 3 # Failures before marking unhealthy
recovery_threshold: 2 # Successes before marking healthy
endpoints:
- "https://api.minecraft.net/status"
- "https://sessionserver.mojang.com/session/minecraft/profile/test"
Automatic Failover¶
proxy:
failover:
enabled: true
max_failures: 5 # Max failures before switching
cooldown_period: 300 # Seconds before retrying failed proxy
fallback_to_direct: true # Use direct connection if all proxies fail
Performance Monitoring¶
Proxy Metrics¶
Monitor proxy performance:
proxy:
monitoring:
enabled: true
metrics:
- "latency"
- "success_rate"
- "bandwidth"
- "uptime"
export_interval: 3600 # Export metrics every hour
export_format: "json" # json, csv, prometheus
Logging¶
Enable detailed proxy logging:
Common Issues¶
Proxy Authentication Errors¶
Problem: 407 Proxy Authentication Required
Solutions: - Verify username/password are correct - Check if proxy requires different auth method - Ensure special characters are URL-encoded
import urllib.parse
username = urllib.parse.quote("user@domain.com")
password = urllib.parse.quote("p@ssw0rd!")
proxy = f"http://{username}:{password}@proxy:port"
Connection Timeouts¶
Problem: Proxies timing out frequently
Solutions: - Increase timeout values - Use proxies closer to Minecraft servers - Test proxy speed and stability - Reduce concurrent connections per proxy
Rate Limiting¶
Problem: Getting rate limited despite using proxies
Solutions: - Use more proxies - Increase delays between requests - Use residential proxies instead of datacenter - Implement better rotation logic
IP Blocking¶
Problem: Proxy IPs getting blocked
Solutions: - Use high-quality residential proxies - Rotate IPs more frequently - Avoid aggressive request patterns - Use proxies from different subnets
Security Considerations¶
Proxy Security¶
- Use HTTPS proxies when possible
- Verify proxy provider reputation
- Monitor for data leaks
- Avoid free public proxies
Authentication Security¶
- Store credentials securely
- Use environment variables
- Rotate credentials regularly
- Monitor for unauthorized access
# Secure credential storage
proxy:
proxies:
- "http://${PROXY_USER}:${PROXY_PASS}@proxy1:port"
- "http://${PROXY_USER}:${PROXY_PASS}@proxy2:port"
Best Practices¶
Proxy Selection¶
- Quality over quantity - Better to have 5 good proxies than 50 bad ones
- Geographic diversity - Use proxies from different regions
- Provider diversity - Don't rely on a single provider
- Regular testing - Monitor proxy health continuously
Configuration Tips¶
- Start conservative - Begin with higher timeouts and delays
- Monitor performance - Track success rates and adjust
- Plan for failures - Always have backup proxies
- Test before sniping - Validate setup before important drops
Cost Optimization¶
- Residential for important snipes - Use premium proxies for valuable usernames
- Datacenter for testing - Use cheaper proxies for development
- Monitor usage - Track bandwidth and request limits
- Optimize rotation - Reduce unnecessary proxy switches
Next Steps¶
- Learn about performance optimization in Performance Optimization
- Understand the sniping process in How It Works
- Troubleshoot issues in Troubleshooting