IPIPGO ip proxy socks proxy: SOCKS proxy server setup tutorial

socks proxy: SOCKS proxy server setup tutorial

Teach you how to build an exclusive SOCKS channel friends of the network know that sometimes you need an intermediary to help pass the data, SOCKS proxy is like a reliable courier, specializing in helping you to send the network request to the destination intact. Unlike ordinary HTTP proxies, it can pass all protocols, and is especially suitable for...

socks proxy: SOCKS proxy server setup tutorial

Hands on to build an exclusive SOCKS channel!

Network friends know that sometimes you need an intermediary to help pass the data, SOCKS proxy is like a reliable courier, specializing in helping you to send the network request to the original destination. Unlike ordinary HTTP proxies, it can pass all protocols, especially suitable for the need to stabilize the transmission of the scene.

Recently, a lot of friends who do data collection find me complaining, saying that the agent on the market always drops the chain. Here to teach you to build your own SOCKS server, and then with a reliable agent resources, guaranteed to make your crawler fly.

Preparing ingredients: server + proxy IP

First of all, the hardware configuration, get an overseas server as a base station. Recommended Ubuntu system, easy to operate and save time. Memory 512MB enough, hard disk selection 20GB solid state, bandwidth of at least 100Mbps. do not be greedy to choose those small vendors, network fluctuations can be angry you spit blood.

Here comes the kicker - proxy IP sources. Here must be amenableipipgoThe static residential package of the family, 35 dollars a month exclusive IP. their IP are real home broadband, much more stable than the IP server room. Before I have a cross-border e-commerce friends, using his IP to do commodity price comparison, collection success rate directly from 60% soared to 92%.


 Update the system first
sudo apt-get update && sudo apt-get upgrade -y

 Install the essential tools
sudo apt-get install build-essential

On the Hard Dish: Dante Server Configuration

Recommended to use Dante this open source tool, configuration is as simple as building blocks. Follow the steps below, ten minutes to get it done:


 Installing Dante
sudo apt-get install dante-server

 Backup the original configuration
sudo cp /etc/danted.conf /etc/danted.conf.bak

 Create a new configuration file
sudo nano /etc/danted.conf

Focus on changing these places in the configuration file:


 Change the listening port to what you want (e.g. 1080)
internal: eth0 port = 1080

 The recommended authentication method is username and password
method: username none
user.privileged: root
user.notprivileged: nobody

 Allowed client IP segments
client pass {
    from: 0.0.0.0/0 to: 0.0.0.0/0
}

Remember to restart the service after changing it:sudo systemctl restart danted

Spice mix: IP rotation strategy

It's not enough to have a server, you have to be able to play with IP rotation. Here's a great trick to teach you - useAPI for ipipgoDynamically change IP. their API return format is particularly refreshing, no need to fiddle with parsing:


import requests

def get_proxy(): url =
    url = "https://api.ipipgo.com/dynamic"
    params = {
        'key': 'Your API key',
        'protocol': 'socks5',
        'count': 1
    }
    res = requests.get(url, params=params)
    return res.json()['data'][0]

After getting the IP, configure the client with this format:username:password@ip:port

Frequently Asked Questions First Aid Kit

Q: Is it particularly slow to connect to the agent?
A: Check the server bandwidth first, then use thetracerouteDepends on the routing direction. If it goes to the international backbone, it is recommended to changeipipgo cross-border lineTheir China-U.S. line latency can be reduced to less than 150ms.

Q: Always prompt authentication failure?
A: 80% of the username and password with special symbols, it is recommended that only alphanumeric combinations. dante server remember to use thesudo dpkg-reconfigure dante-serverreset password

Q: What if I need to manage multiple agents at the same time?
A: Upipipgo client toolsIt supports batch import of proxy lists. You can also set up automatic switching rules, such as changing IP when encountering a 403 error

Package Selection Guide

Business Type Recommended Packages Applicable Scenarios
data acquisition Dynamic residential (standard) Small to medium sized crawlers, $7.67/GB really fragrant
Account Management Static homes Long term fixed IP required, $35/month
Cross-border business Enterprise Dynamics High concurrency demand, starting at $9.47/GB

The last nagging sentence: self-built SOCKS server remember to regularly update the system patch, conditional on the fire rules. Encounter technical problems directly find ipipgo technical support, their engineers are still online at two o'clock in the morning, the response speed absolute.

This article was originally published or organized by ipipgo.https://www.ipipgo.com/en-us/ipdaili/41532.html

business scenario

Discover more professional services solutions

💡 Click on the button for more details on specialized services

New 10W+ U.S. Dynamic IPs Year-End Sale

Professional foreign proxy ip service provider-IPIPGO

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact Us

13260757327

Online Inquiry. QQ chat

E-mail: hai.liu@xiaoxitech.com

Working hours: Monday to Friday, 9:30-18:30, holidays off
Follow WeChat
Follow us on WeChat

Follow us on WeChat

Back to top
en_USEnglish