<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 全网低价IP</title>
    <description>The latest articles on DEV Community by 全网低价IP (@socks5ip).</description>
    <link>https://dev.to/socks5ip</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4127732%2Fa534ece7-c74c-4d1b-922e-04c4aa8b408e.jpg</url>
      <title>DEV Community: 全网低价IP</title>
      <link>https://dev.to/socks5ip</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/socks5ip"/>
    <language>en</language>
    <item>
      <title>A Proxy Cannot Read Your HTTPS Body. It Still Sees More Than You Think.</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Mon, 23 Nov 2026 02:06:46 +0000</pubDate>
      <link>https://dev.to/socks5ip/a-proxy-cannot-read-your-https-body-it-still-sees-more-than-you-think-482f</link>
      <guid>https://dev.to/socks5ip/a-proxy-cannot-read-your-https-body-it-still-sees-more-than-you-think-482f</guid>
      <description>&lt;p&gt;Two engineers run the same traffic through the same proxy. One says the provider cannot see anything because the site is HTTPS. The other pulls a connection log and reads the hostname off every session. Neither is wrong, and that is the problem.&lt;/p&gt;

&lt;p&gt;The question "can the proxy see it?" has no single answer. It depends on which layer terminates where, and that is decided by the protocol you chose, not by the padlock in the address bar.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways traffic crosses a proxy
&lt;/h2&gt;

&lt;p&gt;There are three common shapes, and they hand over very different amounts of information.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Plaintext forwarding.&lt;/strong&gt; The client sends a full request line with an absolute URI, such as &lt;code&gt;GET http://example.com/a/b?q=1 HTTP/1.1&lt;/code&gt;. The proxy parses the URL, the headers, the cookies and the body, because it has to in order to forward them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A CONNECT tunnel.&lt;/strong&gt; The client asks for a TCP connection to &lt;code&gt;example.com:443&lt;/code&gt; and then speaks TLS inside it. The proxy can no longer parse requests. It forwards bytes and knows the endpoint, the timing and the volume.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SOCKS5.&lt;/strong&gt; Defined in RFC 1928, this carries an address and a port and nothing else. It has no concept of a URL, a header or a method. The proxy is a transport, not an application gateway.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What the intermediary handles&lt;/th&gt;
&lt;th&gt;Plaintext forward&lt;/th&gt;
&lt;th&gt;CONNECT tunnel&lt;/th&gt;
&lt;th&gt;SOCKS5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Request path and query string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hostname&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes, or no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Headers and cookies&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Body content&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Byte counts and timing&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Encryption covers the content, not the routing
&lt;/h2&gt;

&lt;p&gt;TLS protects what is inside the connection: the HTTP request line, headers, cookies and body. It does not hide who you are talking to, because the network still has to deliver the packet somewhere.&lt;/p&gt;

&lt;p&gt;The hostname shows up in the TLS ClientHello as the Server Name Indication field, in cleartext, before any key is exchanged. Encrypted Client Hello removes that, but deployment is still partial, so assume the name is visible. A CONNECT tunnel therefore reveals the domain even though it reveals nothing else.&lt;/p&gt;

&lt;p&gt;DNS is the second place the name appears, and it is often the one people forget. If the client resolves locally, the name goes to your ISP's resolver and the proxy only ever sees an IP address. If the proxy resolves, the provider sees the name but your local resolver does not. Either way exactly one party outside your machine learns it, and which party that is depends on a configuration detail rather than a promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  A fifteen-line look at what a proxy can log
&lt;/h2&gt;

&lt;p&gt;The difference between the three modes is visible in the first few hundred bytes of a connection. This is enough to classify a session and decide what a hypothetical log line would contain.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sniff&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="s2"&gt;"\x05"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;                       &lt;span class="c1"&gt;# SOCKS5 greeting (RFC 1928)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"socks5"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"auth_methods={head[2:2 + head[1]].hex()}"&lt;/span&gt;
    &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="s2"&gt;"\r\n"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"latin-1"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"CONNECT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;                       &lt;span class="c1"&gt;# tunnel: endpoint only&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"connect"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;                  &lt;span class="c1"&gt;# example.com:443&lt;/span&gt;
    &lt;span class="n"&gt;host&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;":"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
                 &lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"latin-1"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\r\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                 &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"host:"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"?"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"forward"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;               &lt;span class="c1"&gt;# path and query included&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The third branch returns a full path with the query string attached, which is exactly the difference that matters in an audit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three levers that actually change the surface
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Force HTTPS and remove the plaintext fallback.&lt;/strong&gt; Many stacks still follow an &lt;code&gt;http://&lt;/code&gt; redirect the first time, and that first request carries the full path in the clear. Rewriting or blocking plaintext before it leaves the client removes an entire category of exposure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Move name resolution to the side you trust more.&lt;/strong&gt; With SOCKS5 you can send &lt;code&gt;ATYP=0x03&lt;/code&gt; with the domain and let the proxy resolve, or resolve locally and send &lt;code&gt;ATYP=0x01&lt;/code&gt; with an address. The traffic is identical in volume; only the observer changes. Pick deliberately instead of inheriting a default.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do not install a self-signed root in the middle.&lt;/strong&gt; A TLS-intercepting middlebox converts a tunnel back into plaintext forwarding, with all the fields in the table above readable again. If a tool asks you to trust a certificate to "make the proxy work", it is asking for exactly the access you were trying to avoid.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five things this reasoning does not buy you
&lt;/h2&gt;

&lt;p&gt;The exit IP is always visible to the target site. That is the whole point of using a proxy, and no protocol choice changes it.&lt;/p&gt;

&lt;p&gt;A "no logs" claim cannot be verified from outside. What you can verify is behaviour: which fields appear in the client configuration, and whether a middlebox certificate is required.&lt;/p&gt;

&lt;p&gt;Byte counts and timing survive every mode. An observer who cannot read a page can still tell that 4 MB moved at 14:02, and can often infer the type of activity from that shape.&lt;/p&gt;

&lt;p&gt;ECH is not a blanket fix. It is deployed unevenly and can be disabled by a middlebox, so treating the hostname as hidden is unsafe until you test the specific path.&lt;/p&gt;

&lt;p&gt;Fixing one artifact does not fix the others. Blocking SNI while leaving local DNS resolution in place simply moves the disclosure, and it usually moves it somewhere you are not looking.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can my proxy provider read my HTTPS traffic?&lt;/strong&gt;&lt;br&gt;
Not the content, assuming a real tunnel with no intercepted certificate. It can still see the destination hostname, the bytes transferred and the timing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does SOCKS5 hide the domain name?&lt;/strong&gt;&lt;br&gt;
It carries whatever address form the client sends. With a domain in the request the proxy sees the name; with a pre-resolved address it sees only the IP. The protocol does not decide, the client does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is ECH enough to keep the hostname private?&lt;/strong&gt;&lt;br&gt;
Only where both ends support it and nothing in the path strips it. Test the actual route rather than assuming the extension was negotiated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can a proxy tell which page I opened?&lt;/strong&gt;&lt;br&gt;
In plaintext forwarding, yes, including the query string. Inside a CONNECT tunnel or SOCKS5 session, only the host and port, unless something in the middle terminates TLS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing the right layer
&lt;/h2&gt;

&lt;p&gt;The practical rule: pick the least capable protocol that still does the job. If the client only needs a TCP path, SOCKS5 exposes the least. Per-request policy costs visibility, and that trade should be explicit.&lt;/p&gt;

&lt;p&gt;For the Chinese-language version of this layer-by-layer comparison, including the four billing fields every provider necessarily records, see &lt;a href="https://socks5ip.com.cn/zuixinzixun/jishuzixun/dailiip-xieyi-kejian-fanwei/" rel="noopener noreferrer"&gt;what a proxy provider can actually see&lt;/a&gt;. If the next question is which address the target sees at the other end, the &lt;a href="https://socks5ip.com.cn/daili-ip-zhishiku/" rel="noopener noreferrer"&gt;proxy IP knowledge base&lt;/a&gt; covers protocol support, address types and testing methods.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>privacy</category>
      <category>devops</category>
    </item>
    <item>
      <title>Your IP Is Clean. The Other 253 Addresses in Its /24 Decide Your Fate.</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Thu, 19 Nov 2026 07:41:25 +0000</pubDate>
      <link>https://dev.to/socks5ip/your-ip-is-clean-the-other-253-addresses-in-its-24-decide-your-fate-2nii</link>
      <guid>https://dev.to/socks5ip/your-ip-is-clean-the-other-253-addresses-in-its-24-decide-your-fate-2nii</guid>
      <description>&lt;p&gt;You buy a proxy, check the address, and every score comes back green. Then an account registered through it is suspended within a day, and the IP still scores green afterwards.&lt;/p&gt;

&lt;p&gt;The address was never the unit being judged. The prefix was.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three scopes that get confused
&lt;/h2&gt;

&lt;p&gt;An IP reputation lookup answers one narrow question about a single 32-bit number. What a target site enforces is usually decided at a coarser scope, because that is where abuse is cheap to detect and expensive to launder.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Unit&lt;/th&gt;
&lt;th&gt;Who decides&lt;/th&gt;
&lt;th&gt;What a block means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Address&lt;/td&gt;
&lt;td&gt;One IP&lt;/td&gt;
&lt;td&gt;That site's own rules&lt;/td&gt;
&lt;td&gt;This endpoint is burned&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prefix&lt;/td&gt;
&lt;td&gt;/24 or the RIR allocation&lt;/td&gt;
&lt;td&gt;Abuse feeds, CDN rule sets&lt;/td&gt;
&lt;td&gt;Everyone inside inherits it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ASN&lt;/td&gt;
&lt;td&gt;Entire network&lt;/td&gt;
&lt;td&gt;Onboarding and KYC teams&lt;/td&gt;
&lt;td&gt;The whole provider is filtered&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A green score is sampled at the first scope. Enforcement frequently happens at the second. That gap is the whole problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why one bad tenant lands on you
&lt;/h2&gt;

&lt;p&gt;Three paths carry the penalty, and none of them requires you to have done anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Feed replication.&lt;/strong&gt; An abuse feed records one address for sending junk. Consumers of that feed do not always apply it as a single host — many apply it to the covering /24, because spam operations rotate addresses inside a prefix they control. One entry becomes 256.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Registration clustering.&lt;/strong&gt; RDAP and WHOIS describe the block as one allocation with one organisation, one abuse contact, one netname. Risk engines read that as a unit and inherit the allocation's history as context for each address inside it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Observed density.&lt;/strong&gt; No blocklist is needed. The target counts: four hundred new accounts, two hundred and fifty-six addresses, one TLS fingerprint, one inter-arrival distribution. The neighbourhood is guilty by statistics rather than by list.&lt;/p&gt;

&lt;p&gt;The third path is the one that catches people with genuinely clean addresses. Nothing to appeal, no record to remove.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shared, segment-dedicated, full-dedicated
&lt;/h2&gt;

&lt;p&gt;Vendors use these words loosely. The distinction that matters is how many strangers sit inside your /24.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan style&lt;/th&gt;
&lt;th&gt;Addresses you use&lt;/th&gt;
&lt;th&gt;Strangers in your /24&lt;/th&gt;
&lt;th&gt;What you inherit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Shared pool&lt;/td&gt;
&lt;td&gt;A few, rotating&lt;/td&gt;
&lt;td&gt;Up to 253&lt;/td&gt;
&lt;td&gt;Every tenant's history and behaviour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Segment dedicated&lt;/td&gt;
&lt;td&gt;A slice of a prefix&lt;/td&gt;
&lt;td&gt;Usually 2 to 4 tenants&lt;/td&gt;
&lt;td&gt;Their history, diluted&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full dedicated&lt;/td&gt;
&lt;td&gt;A /24 or larger&lt;/td&gt;
&lt;td&gt;None, unless self-inflicted&lt;/td&gt;
&lt;td&gt;Only your own patterns&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"One dedicated IP" sits in the first row. A dedicated address is not a dedicated neighbourhood, and that is where most expectations break.&lt;/p&gt;

&lt;h2&gt;
  
  
  Counting your neighbours
&lt;/h2&gt;

&lt;p&gt;Reverse DNS is a passive way to see who else is announced in the block: hosting providers publish PTR records in bulk, residential blocks mostly do not. No packets reach the addresses themselves.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ipaddress&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;collections&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;concurrent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;futures&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;ThreadPoolExecutor&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;ptr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gethostbyaddr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;herror&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gaierror&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;

&lt;span class="n"&gt;addr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ipaddress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ip_address&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"203.0.113.57"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;net&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ipaddress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ip_network&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{addr}/24"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;strict&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sample&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;net&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hosts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;64&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;          &lt;span class="c1"&gt;# never sweep a whole /24&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;ThreadPoolExecutor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max_workers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pool&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ptr&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sample&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;named&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{len(named)}/{len(rows)} sampled addresses publish PTR"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;named&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Last two labels usually identify the operator, not the customer.&lt;/span&gt;
&lt;span class="n"&gt;tails&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"."&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;named&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tails&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;most_common&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two numbers matter in the output. The share that resolves tells you whether this is a hosting block or a residential one. The distinct tails tell you how many operators are diluted into one prefix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the count correctly
&lt;/h2&gt;

&lt;p&gt;High density is not automatically bad. A hosting /24 with two hundred PTR records is a normal web host and is treated as one. A residential /24 with two hundred PTR records is a farm, and feeds learn it fast.&lt;/p&gt;

&lt;p&gt;Low density is not automatically good either. A /24 where nothing resolves may be freshly allocated, or may be a sinkhole operated by someone who never bothered with reverse DNS. Ask for the allocation date from RDAP when the picture is ambiguous.&lt;/p&gt;

&lt;p&gt;What you are looking for is one specific combination: many operators inside one prefix, recent allocation, and a residential or mixed-use label. That profile is where collateral damage concentrates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Trusting an address-level score as a verdict on the neighbourhood. It is one sample of 256.&lt;/li&gt;
&lt;li&gt;Buying "dedicated IP" and expecting a dedicated prefix. You have one address and up to 253 strangers.&lt;/li&gt;
&lt;li&gt;Treating PTR density as a purity signal in both directions. Direction depends on the hosting label.&lt;/li&gt;
&lt;li&gt;Testing one target and concluding the block is fine. Different consumers apply different granularities.&lt;/li&gt;
&lt;li&gt;Switching vendors that resell the same upstream ASN — same neighbourhood, same result, new invoice.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does a clean score mean I will not get blocked?&lt;/strong&gt;&lt;br&gt;
No. It means the single address is not on the lists that checker reads. Prefix-level feeds, behavioural density, and site-specific rules are outside its scope.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I clean up a dirty prefix?&lt;/strong&gt;&lt;br&gt;
Not the other tenants — you have no authority over them. You change scope: move to a segment or a full /24, or reduce the behaviour that made the block statistically attractive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does the same IP work on one site and fail on another?&lt;/strong&gt;&lt;br&gt;
Different feeds with different granularity. One site applies the entry to a single host, the next applies it to the covering /24 and you inherit it without appearing anywhere.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are residential IPs safer because they look human?&lt;/strong&gt;&lt;br&gt;
Not by themselves. Residential prefixes are dense by design, and carrier-grade NAT hides the offender inside a shared address, so feeds list those blocks quickly. The label helps; the density still counts.&lt;/p&gt;

&lt;p&gt;If you want to see your own neighbourhood before a target does, start by reading the allocation — the Chinese walkthrough of neighbour effect and how to check it is at &lt;a href="https://socks5ip.com.cn/zuixinzixun/zonghejiaocheng/dailiip-linjuxiaoying/" rel="noopener noreferrer"&gt;socks5ip.com.cn&lt;/a&gt;. For the address-level checks that the prefix view sits on top of, use the free tools at &lt;a href="https://socks5ip.com.cn/ip-check-center/" rel="noopener noreferrer"&gt;socks5ip.com.cn&lt;/a&gt; and compare the two answers; when they disagree, the prefix is the one that gets enforced.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>python</category>
      <category>devops</category>
    </item>
    <item>
      <title>IP Whitelists and Passwords Authenticate Different Things. One SOCKS5 Byte Explains Why.</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Thu, 12 Nov 2026 02:25:20 +0000</pubDate>
      <link>https://dev.to/socks5ip/ip-whitelists-and-passwords-authenticate-different-things-one-socks5-byte-explains-why-1b67</link>
      <guid>https://dev.to/socks5ip/ip-whitelists-and-passwords-authenticate-different-things-one-socks5-byte-explains-why-1b67</guid>
      <description>&lt;p&gt;The same IP and port works in a router firmware and fails in a browser extension with "authentication failed". The line is fine. What changed is which of two models the client and the server are speaking.&lt;/p&gt;

&lt;p&gt;Vendors sell both under one product page and the choice looks cosmetic. It is not: one authenticates a network location, the other authenticates a secret.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two models, one selection byte
&lt;/h2&gt;

&lt;p&gt;A whitelist checks your source address before anything else happens. The proxy sees a TCP connection arriving from an IP it already has on file, allows it, and never asks for a credential. Nothing about the person is proven — only that the packets came from a known place.&lt;/p&gt;

&lt;p&gt;Credentials work the other way. SOCKS5 carries them as a sub-negotiation, defined in RFC 1929 and selected by method code &lt;code&gt;0x02&lt;/code&gt; in RFC 1928. HTTP proxies use Basic authentication (RFC 7617) and put the pair in a header. Either way the check is on what you present, not on where you are.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;IP whitelist&lt;/th&gt;
&lt;th&gt;Username and password&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What is verified&lt;/td&gt;
&lt;td&gt;Source public IP&lt;/td&gt;
&lt;td&gt;Secret presented per connection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Outbound IP changes&lt;/td&gt;
&lt;td&gt;Fails instantly, silently&lt;/td&gt;
&lt;td&gt;Unaffected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Secret exposure&lt;/td&gt;
&lt;td&gt;None stored on the client&lt;/td&gt;
&lt;td&gt;Must be handled and not leaked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Typical fit&lt;/td&gt;
&lt;td&gt;Fixed egress: routers, cloud hosts&lt;/td&gt;
&lt;td&gt;Dynamic egress: home broadband, hotspots&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Typical breakage&lt;/td&gt;
&lt;td&gt;Redial or reboot changes the address&lt;/td&gt;
&lt;td&gt;Whitespace, full-width characters, case&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The practical consequence: the two failure modes point in opposite directions. A dead whitelist means your address moved. A dead password means the string you sent is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask the server which model it wants
&lt;/h2&gt;

&lt;p&gt;You do not have to guess. Both models are negotiated in the first exchange, so a raw probe tells you what the server expects before you touch any config file. The client sends a greeting listing the methods it supports; the server replies with exactly one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;

&lt;span class="no"&gt;GREETING&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="s2"&gt;"\x05\x02\x00\x02"&lt;/span&gt;  &lt;span class="c1"&gt;# ver, nmethods, no-auth, user/pass&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;probe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pw&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_connection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;GREETING&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;ver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mh"&gt;0x00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"no-auth accepted: this line is whitelisted for you"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mh"&gt;0xFF&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"no acceptable method: you are not whitelisted and sent no credentials"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mh"&gt;0x02&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pw&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="kt"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mh"&gt;0x00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"credentials rejected"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"authenticated by password"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Method &lt;code&gt;0x00&lt;/code&gt; means the server accepted you without a secret — a whitelist match, or a line open to anyone. Method &lt;code&gt;0x02&lt;/code&gt; means it wants credentials. Method &lt;code&gt;0xFF&lt;/code&gt; means nothing on your list was acceptable — the reply most people misread as "the line is down".&lt;/p&gt;

&lt;h2&gt;
  
  
  Where each failure actually happens
&lt;/h2&gt;

&lt;p&gt;Once you know which method the server selected, the error message stops being ambiguous. Almost every "cannot connect" ticket resolves into one row below.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you see&lt;/th&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Likely cause&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;0xFF&lt;/code&gt; in the greeting reply&lt;/td&gt;
&lt;td&gt;Method selection&lt;/td&gt;
&lt;td&gt;Not whitelisted, and no credentials offered&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;0x02&lt;/code&gt; selected, then auth fails&lt;/td&gt;
&lt;td&gt;Sub-negotiation&lt;/td&gt;
&lt;td&gt;Wrong password, stray space, full-width character&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connects, then drops after seconds&lt;/td&gt;
&lt;td&gt;Post-auth limits&lt;/td&gt;
&lt;td&gt;Concurrent session or extraction cap&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Refused before any SOCKS byte&lt;/td&gt;
&lt;td&gt;TCP layer&lt;/td&gt;
&lt;td&gt;Wrong port, wrong protocol, or blocked source&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worked yesterday, dead today&lt;/td&gt;
&lt;td&gt;Whitelist&lt;/td&gt;
&lt;td&gt;Egress IP changed after a redial&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last two matter most. A TCP refusal never reaches authentication, so no credential edit will fix it. A silent drop after a successful handshake is a rate or session limit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Whitelists break in three predictable ways
&lt;/h2&gt;

&lt;p&gt;A whitelist is a binding to an address you do not control, and three situations dissolve it without any error message.&lt;/p&gt;

&lt;p&gt;Home broadband redials. A reconnect or reboot often hands you a different public address, while the old entry stays in the backend looking valid. This is the most common cause of "it broke overnight".&lt;/p&gt;

&lt;p&gt;Carrier-grade NAT shares your exit. When several subscribers sit behind one translated address, your entry may cover other people too, and some providers treat that as shared use.&lt;/p&gt;

&lt;p&gt;Multiple devices behind one router present the same address. Only the router's egress is registered, so a second machine on the LAN is not automatically authorized.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why one client works and another does not
&lt;/h2&gt;

&lt;p&gt;Clients implement different subsets of the negotiation. Many browser extensions expose only a username and password field, so they send &lt;code&gt;0x02&lt;/code&gt; and never offer &lt;code&gt;0x00&lt;/code&gt;. A router firmware usually supports both modes.&lt;/p&gt;

&lt;p&gt;A second trap costs people entire evenings: the L2TP pre-shared key for tunnel setup and the account password for PPP authentication are separate fields. Putting the key in the password box fails at dial-up, before authentication is attempted.&lt;/p&gt;

&lt;p&gt;Ask which model the client speaks, and whether the backend has a matching entry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Registering a LAN address such as &lt;code&gt;192.168.x.x&lt;/code&gt; instead of the public egress the proxy actually sees.&lt;/li&gt;
&lt;li&gt;Copying credentials from a web dashboard and picking up a trailing space or a full-width colon.&lt;/li&gt;
&lt;li&gt;Assuming a whitelist entry updates itself when the ISP reassigns your address.&lt;/li&gt;
&lt;li&gt;Filling the L2TP pre-shared key into the password field.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I enable a whitelist and a password at the same time?&lt;/strong&gt;&lt;br&gt;
Usually yes. The proxy accepts a match on either model. The risk is a stale whitelist entry that no longer matches anything — it does not error, it simply stops helping.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does my client demand a username when the dashboard says whitelisted?&lt;/strong&gt;&lt;br&gt;
The client only implements the credential method. Either extract a credential pair from the backend, or move that line to a client that supports no-auth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does switching Wi-Fi really require a different vendor?&lt;/strong&gt;&lt;br&gt;
No. It requires a different model. Home broadband and hotspot egress move constantly, so use credentials there and reserve whitelisting for fixed egress.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are credentials tied to one device?&lt;/strong&gt;&lt;br&gt;
No. They are a secret, not a device fingerprint, so the same pair works on a laptop, a phone, and a router. What limits you is the provider's concurrent session cap, which shows up as a drop after connection, not a rejection.&lt;/p&gt;

&lt;p&gt;If you want to test which model a line expects without buying anything, run a real handshake — the probe above, or the free checker at &lt;a href="https://socks5ip.com.cn/ip-tools/proxy-check/" rel="noopener noreferrer"&gt;socks5ip.com.cn&lt;/a&gt;. A line answering &lt;code&gt;0x00&lt;/code&gt; is whitelisted for your current address; one answering &lt;code&gt;0x02&lt;/code&gt; needs the credential you were issued. The Chinese-language walkthrough of both models is at &lt;a href="https://socks5ip.com.cn/zuixinzixun/zonghejiaocheng/dailiip-baimingdan-zhanghaomima-renzheng/" rel="noopener noreferrer"&gt;socks5ip.com.cn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>python</category>
      <category>devops</category>
    </item>
    <item>
      <title>IPv6 Behind a Proxy Fails in Three Different Places. Learn to Tell Them Apart.</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Mon, 09 Nov 2026 02:13:51 +0000</pubDate>
      <link>https://dev.to/socks5ip/ipv6-behind-a-proxy-fails-in-three-different-places-learn-to-tell-them-apart-4bfb</link>
      <guid>https://dev.to/socks5ip/ipv6-behind-a-proxy-fails-in-three-different-places-learn-to-tell-them-apart-4bfb</guid>
      <description>&lt;p&gt;A vendor says "IPv6 supported". You buy a plan, request a v6 address through the exit, and nothing comes back. Support insists the exit is dual-stack. Your logs disagree. Both of you may be right, because IPv6 behind a proxy is not one capability.&lt;/p&gt;

&lt;p&gt;It is three: the exit can carry v6, the client can ask for v6, and the target has a v6 address. A failure in any of them looks identical from outside — a timeout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three segments, three different owners
&lt;/h2&gt;

&lt;p&gt;The egress segment belongs to the vendor: whether packets leaving their network toward a v6 prefix are routed at all. The client segment is yours: which family your tool resolves and which request type it emits. The target segment belongs to whoever runs the site.&lt;/p&gt;

&lt;p&gt;Most stalled tickets merge those three into one question. Ask a vendor "does it support IPv6" and the honest answer depends on which segment they think you mean.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Segment&lt;/th&gt;
&lt;th&gt;What you see&lt;/th&gt;
&lt;th&gt;One test that isolates it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Egress&lt;/td&gt;
&lt;td&gt;v4 target fine, v6 target times out&lt;/td&gt;
&lt;td&gt;Send &lt;code&gt;ATYP=0x04&lt;/code&gt; through the exit, read the reply code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Client&lt;/td&gt;
&lt;td&gt;One tool works, another fails, same exit&lt;/td&gt;
&lt;td&gt;Compare a raw probe, &lt;code&gt;curl -6&lt;/code&gt;, and the browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Target&lt;/td&gt;
&lt;td&gt;Some hosts work over v6, one never does&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;dig AAAA&lt;/code&gt; the hostname before blaming the exit&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Test the target first, because it is free. Then the client, which you can reproduce at no cost. The exit comes last, since proving it needs a purchased credential and a request you cannot fake from outside.&lt;/p&gt;

&lt;h2&gt;
  
  
  The protocol already has a field for this
&lt;/h2&gt;

&lt;p&gt;SOCKS5 was specified with IPv6 in mind. RFC 1928 defines three address types in the request, and one is a 16-byte IPv6 literal. A conforming exit therefore needs no special mode to reach a v6 destination; it needs a route.&lt;/p&gt;

&lt;p&gt;That explains the most common false negative. A client that never emits &lt;code&gt;ATYP=0x04&lt;/code&gt; keeps resolving to v4 and connecting over v4, on an exit that would have carried v6 fine. The tunnel did not refuse it — it was never asked.&lt;/p&gt;

&lt;p&gt;An exit returning &lt;code&gt;REP=0x08&lt;/code&gt; (address type not supported) lacks the v6 branch in its parser. &lt;code&gt;REP=0x03&lt;/code&gt; (network unreachable) is different: the parser understood you, and routing said no.&lt;/p&gt;

&lt;h2&gt;
  
  
  A probe that separates the layers
&lt;/h2&gt;

&lt;p&gt;Send the request yourself, so no library can quietly downgrade the family for you.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;v6_via_socks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_connection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                    &lt;span class="c1"&gt;# greeting, no auth
&lt;/span&gt;    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x00&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;exit rejected no-auth method&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00\x04&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;inet_pton&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AF_INET6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pack&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;!H&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;rep&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;no reply (dropped)&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="n"&gt;codes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mh"&gt;0x00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ok&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x01&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;general failure&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
             &lt;span class="mh"&gt;0x03&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;network unreachable&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x04&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;host unreachable&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
             &lt;span class="mh"&gt;0x05&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;connection refused&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x08&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;atyp unsupported&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;codes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="nf"&gt;hex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;no reply&lt;/code&gt; and &lt;code&gt;atyp unsupported&lt;/code&gt; mean very different things to a vendor, and telling them apart is usually what resolves the ticket.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which side resolves the name
&lt;/h2&gt;

&lt;p&gt;Who does DNS is decided by the request type, not by a setting.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;ATYP&lt;/th&gt;
&lt;th&gt;Payload&lt;/th&gt;
&lt;th&gt;Resolution&lt;/th&gt;
&lt;th&gt;v4-only exit behaviour&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;0x03&lt;/code&gt; domain&lt;/td&gt;
&lt;td&gt;length + bytes&lt;/td&gt;
&lt;td&gt;exit resolves it&lt;/td&gt;
&lt;td&gt;resolves A, ignores AAAA, connects v4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;0x01&lt;/code&gt; IPv4&lt;/td&gt;
&lt;td&gt;4 bytes&lt;/td&gt;
&lt;td&gt;client resolves it&lt;/td&gt;
&lt;td&gt;works, but caps you at v4 targets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;0x04&lt;/code&gt; IPv6&lt;/td&gt;
&lt;td&gt;16 bytes&lt;/td&gt;
&lt;td&gt;nobody resolves&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;REP=0x08&lt;/code&gt; or &lt;code&gt;0x03&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sending a hostname and letting the exit resolve is convenient, but it hides the family decision inside someone else's resolver. If you care about v6, resolve locally, inspect the answer, and send the type you want.&lt;/p&gt;

&lt;p&gt;Resolution also explains a leak unrelated to traffic. A client that resolves locally asks your own resolver for AAAA records even when all traffic leaves through the exit. The packets are tunnel-escaped; the lookups are not.&lt;/p&gt;

&lt;h2&gt;
  
  
  The vendor's price list has no IP-version column
&lt;/h2&gt;

&lt;p&gt;Plans list concurrency, traffic, session length, and regions. Address family is almost never a row, so "IPv6 supported" carries no plan-level meaning, and two plans from one vendor can differ because they terminate on different pools.&lt;/p&gt;

&lt;p&gt;Verify per plan, inside the trial window: run the probe against two or three v6 destinations. One success proves routing exists. Repeated &lt;code&gt;atyp unsupported&lt;/code&gt; proves the parser has no v6 branch.&lt;/p&gt;

&lt;p&gt;Watch for the half-measure too — inbound v6 on the dashboard while the egress stays v4.&lt;/p&gt;

&lt;h2&gt;
  
  
  Targets that only publish AAAA
&lt;/h2&gt;

&lt;p&gt;Some hosts are v6-only by design, and a v4 exit cannot reach them. Check the records first: an empty &lt;code&gt;A&lt;/code&gt; with a populated &lt;code&gt;AAAA&lt;/code&gt; means the answer is architectural, not a setting.&lt;/p&gt;

&lt;p&gt;The reverse case is more confusing. A site publishes both families but the v6 front end is broken — an expired certificate, or a path that blackholes after the handshake. A client that prefers v6 fails and never falls back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five mistakes that keep the ticket open
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Testing with a v4 echo page. It proves the tunnel works, not the family you care about.&lt;/li&gt;
&lt;li&gt;Letting the library choose. Many clients silently retry over v4, so a v6 failure never surfaces.&lt;/li&gt;
&lt;li&gt;Reading a timeout as a refusal. A dropped packet and &lt;code&gt;REP=0x08&lt;/code&gt; are different diagnoses.&lt;/li&gt;
&lt;li&gt;Ignoring bracket syntax. Missing &lt;code&gt;[&lt;/code&gt; &lt;code&gt;]&lt;/code&gt; around a v6 literal gives a config that looks fine and resolves to nothing.&lt;/li&gt;
&lt;li&gt;Swapping the exit before testing the target. Half the "vendor lied" cases end at an AAAA-only destination.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is a dual-stack exit the same as a v6-capable proxy?&lt;/strong&gt;&lt;br&gt;
No. Dual-stack describes the host's own interfaces. What matters is whether the request parser accepts a 16-byte address and whether routing exists onward.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does the same credential work in one tool and fail in another?&lt;/strong&gt;&lt;br&gt;
Because the family decision lives in each tool's resolver and connection logic, not in the proxy string.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use v6 to dodge v4 rate limits?&lt;/strong&gt;&lt;br&gt;
Not reliably. Limits are usually keyed on the account, the ASN, or the subnet, and one v6 allocation can cover a range that is trivially bucketed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does a v6 exit leak my real address?&lt;/strong&gt;&lt;br&gt;
Not through the tunnel. But local resolution and any direct connection path still can, which is why the resolution side matters as much as the egress.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this sits in an egress stack
&lt;/h2&gt;

&lt;p&gt;Address family is one property of an exit among several, and the one most often assumed rather than measured. The &lt;a href="https://socks5ip.com.cn/zuixinzixun/jishuzixun/dailiip-ipv6-zhichi-ma-sanduan/" rel="noopener noreferrer"&gt;IPv6 three-segment diagnosis on socks5ip.com.cn&lt;/a&gt; walks the same split with per-plan verification steps, and the &lt;a href="https://socks5ip.com.cn/ip-check-center/" rel="noopener noreferrer"&gt;IP check centre&lt;/a&gt; shows what your exit looks like from outside before you touch client settings.&lt;/p&gt;

&lt;p&gt;Test the target, then the client, then the exit — and keep the reply code. It is the only part of the report a vendor cannot reinterpret.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>ipv6</category>
      <category>python</category>
      <category>devops</category>
    </item>
    <item>
      <title>WebRTC Leaks Your Real Address Even Behind a Proxy. Here Is the Path It Takes.</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Thu, 05 Nov 2026 02:11:27 +0000</pubDate>
      <link>https://dev.to/socks5ip/webrtc-leaks-your-real-address-even-behind-a-proxy-here-is-the-path-it-takes-5fe2</link>
      <guid>https://dev.to/socks5ip/webrtc-leaks-your-real-address-even-behind-a-proxy-here-is-the-path-it-takes-5fe2</guid>
      <description>&lt;p&gt;You pointed the browser at a SOCKS5 exit, loaded an IP echo page, and it returned the country you paid for. Then a call widget, a support chat, or a conferencing SDK negotiated a session, and the other side logged an address from your home ISP. Nothing was misconfigured in the tunnel. A different subsystem opened its own route out.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the browser is actually collecting
&lt;/h2&gt;

&lt;p&gt;WebRTC needs a peer-to-peer path, so before any media flows it runs ICE: it enumerates every way another host could reach this machine and hands that list to the remote party. Three candidate types matter here.&lt;/p&gt;

&lt;p&gt;Host candidates are the machine's own interface addresses. Modern browsers obfuscate them as random &lt;code&gt;.local&lt;/code&gt; mDNS names, so a stranger no longer reads &lt;code&gt;192.168.x.x&lt;/code&gt; directly — but the obfuscation is cosmetic, not a privacy boundary.&lt;/p&gt;

&lt;p&gt;Server-reflexive candidates are the ones that hurt. The browser sends a STUN binding request to a public server and learns the address that server saw. That is your real public IP, measured on the machine's own network path.&lt;/p&gt;

&lt;p&gt;Relay candidates only exist when a TURN server was configured, which is the single case where the address belongs to infrastructure instead of you.&lt;/p&gt;

&lt;p&gt;The mechanism is structural: STUN is a UDP conversation with a third party, started by the browser, independent of whatever TCP tunnel you aimed at the page you were reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four surfaces, one of which is not covered
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Surface&lt;/th&gt;
&lt;th&gt;What leaves&lt;/th&gt;
&lt;th&gt;Transport&lt;/th&gt;
&lt;th&gt;Covered by a SOCKS5 proxy?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Host candidate&lt;/td&gt;
&lt;td&gt;Local interface address&lt;/td&gt;
&lt;td&gt;mDNS, link-local&lt;/td&gt;
&lt;td&gt;No — never enters the tunnel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;srflx via STUN&lt;/td&gt;
&lt;td&gt;Public IP of your real path&lt;/td&gt;
&lt;td&gt;UDP to 3478&lt;/td&gt;
&lt;td&gt;Only with &lt;code&gt;UDP ASSOCIATE&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DNS resolution&lt;/td&gt;
&lt;td&gt;Resolver address, query names&lt;/td&gt;
&lt;td&gt;UDP/TCP 53&lt;/td&gt;
&lt;td&gt;Client-dependent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The HTTP request&lt;/td&gt;
&lt;td&gt;The page you asked for&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;Yes, when scoped correctly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Notice that three of the four rows are UDP or link-local, while the proxy you configured is usually a TCP-only &lt;code&gt;CONNECT&lt;/code&gt;. The page loads through the tunnel; the media negotiation does not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the tunnel does not catch it
&lt;/h2&gt;

&lt;p&gt;RFC 1928 defines exactly three commands. Most client libraries implement only the first and then advertise themselves as "SOCKS5 support".&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CMD&lt;/th&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;What it actually carries&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x01&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CONNECT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;One outbound TCP stream&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x02&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;BIND&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Inbound TCP, rarely implemented&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x03&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;UDP ASSOCIATE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Datagrams through a relay port&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A &lt;code&gt;CONNECT&lt;/code&gt;-only client has no vocabulary for a datagram. It cannot forward the STUN request, and it usually does not fail loudly — the application simply falls back to the local path that is still available. That fallback is the leak.&lt;/p&gt;

&lt;p&gt;This is the same root cause that makes some game clients behave oddly behind a proxy, and it is why "the proxy works" and "UDP works" are two separate facts you have to verify separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prove it in twenty lines
&lt;/h2&gt;

&lt;p&gt;Before touching browser flags, ask the exit whether it will carry datagrams at all. The greeting is two bytes, and the reply code tells you everything.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;probe_udp_associate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_connection&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                  &lt;span class="c1"&gt;# ver 5, 1 method, no-auth
&lt;/span&gt;    &lt;span class="n"&gt;ver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;handshake refused: method=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;#04x&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x03\x00\x01&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x00&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# UDP ASSOCIATE, 0.0.0.0:0
&lt;/span&gt;    &lt;span class="n"&gt;ver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;atyp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;rep&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mh"&gt;0x00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;REP=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;#04x&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cmd unsupported&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;rep&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mh"&gt;0x07&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;refused&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mh"&gt;0x01&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x04&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;}.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;atyp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                             &lt;span class="c1"&gt;# relay address + port
&lt;/span&gt;    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;UDP ASSOCIATE accepted&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;REP=0x07&lt;/code&gt; means command not supported, and it is the answer you should expect from a plain TCP proxy. Note that acceptance is necessary but not sufficient: the browser still has to be told to use that path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing it, layer by layer
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What it changes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Browser policy&lt;/td&gt;
&lt;td&gt;Chromium &lt;code&gt;WebRtcIPHandlingPolicy=disable_non_proxied_udp&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Forbids UDP that bypasses the proxy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Browser policy&lt;/td&gt;
&lt;td&gt;Firefox &lt;code&gt;media.peerconnection.ice.proxy_only=true&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Same intent, different key&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stack&lt;/td&gt;
&lt;td&gt;Disable IPv6 on the egress interface&lt;/td&gt;
&lt;td&gt;Removes a whole parallel address space&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Profile&lt;/td&gt;
&lt;td&gt;Use a fingerprint browser that scopes UDP per profile&lt;/td&gt;
&lt;td&gt;Policy ships pre-set, survives restarts&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Chromium value is the important one to read carefully: it does not force UDP through the proxy, it forbids UDP that would not go through it. Calls may fail as a result. For isolation work that is the correct trade — a broken call is cheaper than a logged home address.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five mistakes that keep the leak alive
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Confirming only the HTTP path. An IP echo page proves &lt;code&gt;CONNECT&lt;/code&gt; works; it says nothing about ICE.&lt;/li&gt;
&lt;li&gt;Assuming a proxy extension covers WebRTC. Extensions that rewrite proxy settings do not touch the ICE policy, which lives elsewhere.&lt;/li&gt;
&lt;li&gt;Treating mDNS &lt;code&gt;.local&lt;/code&gt; candidates as safe. They hide the LAN address, not the public one seen by a STUN server.&lt;/li&gt;
&lt;li&gt;Blocking UDP 3478 only. Several clients retry the same STUN service over TCP/443, which your tunnel may well forward.&lt;/li&gt;
&lt;li&gt;Re-testing after an exit change with the old browser profile. A new IP with a stale policy state reads as a regression that is not one.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does &lt;code&gt;UDP ASSOCIATE&lt;/code&gt; alone stop the leak?&lt;/strong&gt;&lt;br&gt;
No. It makes datagrams reachable through the exit, which is a prerequisite. The client must also be configured to use that path, otherwise it keeps choosing the direct one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do desktop apps and mobile SDKs leak the same way?&lt;/strong&gt;&lt;br&gt;
Yes, often more quietly. Conferencing and game SDKs frequently bundle their own STUN logic, and the operating-system proxy setting never reaches it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is a relay candidate a good sign?&lt;/strong&gt;&lt;br&gt;
It is the one candidate type that does not expose your path, because the address belongs to a TURN server. The cost is bandwidth and latency, since every packet takes a detour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does this matter for scraping and API clients?&lt;/strong&gt;&lt;br&gt;
Rarely. A pure HTTP client cannot gather ICE candidates. The risk appears when you render pages in a real browser profile, which is exactly what anti-detect setups do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this sits in an egress stack
&lt;/h2&gt;

&lt;p&gt;Candidate policy is a property of the client, not of the exit, so a well-reputed IP and a correct tunnel still leave this path open until the browser is configured. The &lt;a href="https://socks5ip.com.cn/ip-tools/ip-security/webrtcxielou/" rel="noopener noreferrer"&gt;WebRTC leak walkthrough on socks5ip.com.cn&lt;/a&gt; covers the per-browser detection and fix steps, and the &lt;a href="https://socks5ip.com.cn/ip-check-center/" rel="noopener noreferrer"&gt;IP check centre&lt;/a&gt; confirms what the exit looks like from outside before you go chasing client behaviour.&lt;/p&gt;

&lt;p&gt;Audit one layer at a time, and write down which layer you changed. Most "the proxy leaks" reports turn out to be an unmodified browser policy, not a dishonest exit.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>webdev</category>
      <category>python</category>
    </item>
    <item>
      <title>Concurrency, Connections, Threads: Which Number Your Proxy Plan Actually Meters</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Mon, 02 Nov 2026 02:08:58 +0000</pubDate>
      <link>https://dev.to/socks5ip/concurrency-connections-threads-which-number-your-proxy-plan-actually-meters-48ff</link>
      <guid>https://dev.to/socks5ip/concurrency-connections-threads-which-number-your-proxy-plan-actually-meters-48ff</guid>
      <description>&lt;p&gt;You raised the thread count because requests were timing out. Throughput improved for an afternoon, then the provider's endpoint started returning errors and half the workers stalled. The plan advertised 200 concurrency, so the ceiling was supposed to be somewhere far away.&lt;/p&gt;

&lt;p&gt;Four different numbers get described as "how much you can run at once", and they sit on three different layers. Mixing them up is how people buy a bigger tier to fix a problem that was never on the provider's side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four terms, three layers
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Numbers that live here&lt;/th&gt;
&lt;th&gt;Who sets it&lt;/th&gt;
&lt;th&gt;What exceeding it looks like&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Your machine&lt;/td&gt;
&lt;td&gt;threads, open sockets, upstream bandwidth&lt;/td&gt;
&lt;td&gt;your client settings, your NIC&lt;/td&gt;
&lt;td&gt;queueing, timeouts, CPU or bandwidth saturation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your plan&lt;/td&gt;
&lt;td&gt;concurrency, rotation quota, extraction frequency, IP allowlist&lt;/td&gt;
&lt;td&gt;the provider, per tier&lt;/td&gt;
&lt;td&gt;endpoint rejection or a limit-exceeded message&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The destination&lt;/td&gt;
&lt;td&gt;per-IP rate limits, fingerprint scoring&lt;/td&gt;
&lt;td&gt;the site you are calling&lt;/td&gt;
&lt;td&gt;CAPTCHAs and 429s however many IPs you rotate&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That third row is where the money goes missing. When the destination throttles you, more concurrency and more threads make it worse. Backing both off is frequently the actual fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Threads are yours; concurrency is theirs
&lt;/h2&gt;

&lt;p&gt;Concurrency is an authorisation number printed on the plan: connections the provider agrees to hold open for you at one instant. It is a contract, not a measurement.&lt;/p&gt;

&lt;p&gt;Threads are your own parallelism unit inside a scraper or a multi-boxing tool. Connection count is what the machine is holding right now — visible in Proxifier, NekoBox, or &lt;code&gt;ss -tn&lt;/code&gt;. The three move together, but not one to one.&lt;/p&gt;

&lt;p&gt;A thread that issues one request and waits holds one connection. A thread with keep-alive across ten hosts can hold ten.&lt;/p&gt;

&lt;p&gt;So "raise the threads" pushes on all three layers at once. Hit your machine's wall first and you get timeouts with a sagging success rate. Hit the plan's wall first and you get endpoint errors. The symptoms differ, so read them before changing anything.&lt;/p&gt;

&lt;p&gt;Do the arithmetic before upgrading: 40 threads touching two hosts each is up to 80 sockets. Against a tier that allows 50 concurrency, a configuration with "only" 40 threads is already over.&lt;/p&gt;

&lt;h2&gt;
  
  
  Extraction frequency is a rhythm, not a capacity
&lt;/h2&gt;

&lt;p&gt;Extraction frequency governs how often you may call the endpoint that hands out new IPs. It says nothing about how long an IP stays usable — that is session length or rotation quota, a separate line item.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pattern&lt;/th&gt;
&lt;th&gt;Rhythm&lt;/th&gt;
&lt;th&gt;Fits&lt;/th&gt;
&lt;th&gt;Watch out for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Timed batch&lt;/td&gt;
&lt;td&gt;one list per fixed interval&lt;/td&gt;
&lt;td&gt;crawling, batch registration&lt;/td&gt;
&lt;td&gt;missing the window costs a whole cycle; the script must wait&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;On-demand&lt;/td&gt;
&lt;td&gt;one call, immediate response&lt;/td&gt;
&lt;td&gt;flash sales, short bursts&lt;/td&gt;
&lt;td&gt;the rate cap usually tracks the tier&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manual pull&lt;/td&gt;
&lt;td&gt;a human clicks in a dashboard&lt;/td&gt;
&lt;td&gt;topping up a handful of IPs&lt;/td&gt;
&lt;td&gt;cannot be scripted, so it does not scale&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One question decides which pattern you need: does a script or a human trigger the rotation? If a script does, the interval and its retries belong in the code, with a backoff that respects the window.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure your own ceiling
&lt;/h2&gt;

&lt;p&gt;Provider pages describe the tier, not your NIC, your CPU, or your distance from the exit. The only trustworthy number is the one you measure, and it takes about ten minutes.&lt;/p&gt;

&lt;p&gt;Ramp the level and record the first failure. A minimal SOCKS5 greeting is enough to test connection slots — you do not need to fetch a real page to find out when sockets stop opening.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;concurrent.futures&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ThreadPoolExecutor&lt;/span&gt;

&lt;span class="n"&gt;PROXY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;203.0.113.10&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1080&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;# your exit
&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;probe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;t0&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_connection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PROXY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                     &lt;span class="c1"&gt;# ver 5, 1 method, no-auth
&lt;/span&gt;        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x00&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;
        &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00\x01&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;inet_aton&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;1.1.1.1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;to_bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;big&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;                        &lt;span class="c1"&gt;# REP byte
&lt;/span&gt;        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="nf"&gt;return &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;t0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;OSError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;ThreadPoolExecutor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;ex&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ex&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;probe&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="n"&gt;p50&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;p50=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;s&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;-&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ok=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read the output as a curve, not a single figure. The level just before the success rate drops is your sustainable setting; the level just before median latency doubles is your burst setting. Re-run after changing machines, exits, or targets, because the line moves.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five mistakes that cost a tier upgrade
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reading "unlimited" as unlimited concurrency.&lt;/strong&gt; It usually modifies rotation count. Concurrency is a separate authorisation, often printed in the same table two columns away.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Counting threads and calling it concurrency.&lt;/strong&gt; Threads are yours and are bounded by hardware, not by the plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assuming a missing allowlist entry means a dead line.&lt;/strong&gt; An unauthorised source returns an endpoint-level rejection while the exit is perfectly reachable. If the socket opens, the line is not the problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rotating IPs to escape a destination rate limit.&lt;/strong&gt; Per-IP limits reset; account and fingerprint signals do not. More IPs against one account is the standard way to burn a whole pool.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sizing on peak, buying on average.&lt;/strong&gt; Pick the tier from the level you can hold for a full business cycle, not from a burst you hit twice a day.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is concurrency the same as connection count?&lt;/strong&gt; No. Concurrency is the cap the provider grants per tier; connection count is what your machine holds right now. Compare them deliberately or you will never know which one you exceeded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The plan says unlimited — can I run unlimited threads then?&lt;/strong&gt; No. Unlimited typically refers to rotations. Your host still has a socket and bandwidth ceiling, and the tier lists concurrency separately.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why do I get CAPTCHAs with 200 healthy exits?&lt;/strong&gt; Because the limit lives at the destination, not in your pool. Per-IP limits may reset while account and fingerprint signals persist across rotations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I rotated faster and throughput fell. Why?&lt;/strong&gt; Every rotation costs a handshake, a TLS session, and often a cold cookie jar. Past some point the switching cost exceeds the gain, and the pool looks healthy while success rate drops.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to verify the numbers
&lt;/h2&gt;

&lt;p&gt;Term definitions and per-tier comparisons sit side by side at the &lt;a href="https://socks5ip.com.cn/daili-ip-zhishiku/" rel="noopener noreferrer"&gt;proxy IP knowledge base&lt;/a&gt;, and exits can be measured before you commit at the &lt;a href="https://socks5ip.com.cn/ip-check-center/" rel="noopener noreferrer"&gt;IP check center&lt;/a&gt;. If a tier's wording is ambiguous, ask the vendor to confirm the concurrency cap and the rotation quota in writing before paying — those two numbers, not the headline price, decide whether the plan fits.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>performance</category>
      <category>python</category>
      <category>devops</category>
    </item>
    <item>
      <title>Your SOCKS5 Proxy Works Fine. Your DNS Is What Leaks the Location.</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Thu, 29 Oct 2026 02:20:12 +0000</pubDate>
      <link>https://dev.to/socks5ip/your-socks5-proxy-works-fine-your-dns-is-what-leaks-the-location-4mdl</link>
      <guid>https://dev.to/socks5ip/your-socks5-proxy-works-fine-your-dns-is-what-leaks-the-location-4mdl</guid>
      <description>&lt;p&gt;You pointed a client at a SOCKS5 exit, checked the address, and it geolocates to the country you paid for. Then the site still serves you the home-language version, and a login from an unfamiliar city shows up in the account history two days later.&lt;/p&gt;

&lt;p&gt;The tunnel is not broken. SOCKS5 is a connect verb over a byte pipe — it carries exactly the traffic you hand it, from the process you configured. Name resolution is a separate conversation, and it habitually happens outside that pipe.&lt;/p&gt;

&lt;h2&gt;
  
  
  One byte decides where the lookup happens
&lt;/h2&gt;

&lt;p&gt;RFC 1928 defines a single request type that matters here. The client asks the proxy to open a TCP connection to a destination, and the destination is encoded in the &lt;code&gt;ATYP&lt;/code&gt; field:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ATYP=0x01&lt;/code&gt; — a raw IPv4 address. The client already resolved the name itself, so the DNS query left through the machine's own resolver before the tunnel was ever involved.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ATYP=0x03&lt;/code&gt; — a domain name. The client hands over the hostname and the proxy resolves it on the exit side.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ATYP=0x04&lt;/code&gt; — an IPv6 address, with the same consequence as &lt;code&gt;0x01&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So "SOCKS5 is configured" covers two different behaviours, decided by one byte set by a library flag most people never read.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who resolves the name, by client
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Client and setting&lt;/th&gt;
&lt;th&gt;ATYP sent&lt;/th&gt;
&lt;th&gt;Resolver actually used&lt;/th&gt;
&lt;th&gt;Leaks&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;curl --socks5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0x01&lt;/td&gt;
&lt;td&gt;local stub resolver&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;curl --socks5-hostname&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0x03&lt;/td&gt;
&lt;td&gt;proxy egress&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PySocks, &lt;code&gt;rdns=False&lt;/code&gt; (default)&lt;/td&gt;
&lt;td&gt;0x01&lt;/td&gt;
&lt;td&gt;local stub resolver&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PySocks, &lt;code&gt;rdns=True&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;0x03&lt;/td&gt;
&lt;td&gt;proxy egress&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chromium &lt;code&gt;--proxy-server=socks5://&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;0x03&lt;/td&gt;
&lt;td&gt;proxy egress&lt;/td&gt;
&lt;td&gt;only via DoH or bypass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OS-wide TUN on a router&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;whatever the host emits&lt;/td&gt;
&lt;td&gt;depends on port 53&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The two &lt;code&gt;curl&lt;/code&gt; flags look interchangeable and are not. A scraper moved from &lt;code&gt;--socks5-hostname&lt;/code&gt; to &lt;code&gt;--socks5&lt;/code&gt; keeps working perfectly while quietly publishing every hostname it visits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three escape paths that survive a working tunnel
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The client resolves locally.&lt;/strong&gt; This is the common case; most HTTP libraries default to it. Nothing about the exit looks wrong afterwards — the IP and the ASN are correct — but a resolver upstream logged every domain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UDP port 53 never enters the tunnel.&lt;/strong&gt; A SOCKS5 &lt;code&gt;CONNECT&lt;/code&gt; is TCP-only. Plain DNS over UDP is simply not carried, so an app-level proxy setting leaves the system resolver untouched. &lt;code&gt;UDP ASSOCIATE&lt;/code&gt; exists for this, but support on the proxy side is uneven and most clients never request it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Split tunneling on a network-level tunnel.&lt;/strong&gt; L2TP with default-gateway routing disabled, or a TUN interface with a bypass list, sends the resolver query out of the physical interface while the browser still shows the remote address. The tunnel is up; one route is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Symptom to cause to fix
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you observe&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;th&gt;What actually fixes it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Exit IP correct, site language still local&lt;/td&gt;
&lt;td&gt;names resolved locally (&lt;code&gt;ATYP=0x01&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;switch the client to remote resolution&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Proxy on, unrelated apps still resolve&lt;/td&gt;
&lt;td&gt;app-level scoping only&lt;/td&gt;
&lt;td&gt;drop or redirect outbound 53 at the gateway&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tunnel up, leak test shows home resolver&lt;/td&gt;
&lt;td&gt;split tunneling&lt;/td&gt;
&lt;td&gt;restore default route, push DNS to the tunnel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed by restarting the browser only&lt;/td&gt;
&lt;td&gt;resolver or browser cache&lt;/td&gt;
&lt;td&gt;flush, then retest with a fresh hostname&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The fourth row is worth sitting with. A test run right after a fix can measure the state before the fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Proving it with 20 lines
&lt;/h2&gt;

&lt;p&gt;This performs the handshake by hand and sends &lt;code&gt;ATYP=0x03&lt;/code&gt;, which delegates resolution to the exit. Run it against a hostname that only the exit can resolve, then block outbound port 53 and run it again.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;socks5_connect_domain&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pport&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dport&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_connection&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pport&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                  &lt;span class="c1"&gt;# VER, NMETHODS, NO-AUTH
&lt;/span&gt;    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x00&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;OSError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;method negotiation failed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;idna&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00\x03&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pack&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;&amp;gt;H&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dport&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                              &lt;span class="c1"&gt;# ATYP=0x03: exit resolves
&lt;/span&gt;    &lt;span class="n"&gt;rep&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;OSError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SOCKS5 reply code %s&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rep&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;short&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the second run still connects while &lt;code&gt;socket.getaddrinfo()&lt;/code&gt; for the same name fails, your names are being resolved inside the tunnel — that is the behaviour you want, and it is now measured rather than assumed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistakes that keep the leak alive
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Treating a browser proxy extension as an operating-system setting. It is not; every other process keeps its own path out.&lt;/li&gt;
&lt;li&gt;Copying &lt;code&gt;--socks5&lt;/code&gt; instead of &lt;code&gt;--socks5-hostname&lt;/code&gt; into a scraper template, then wondering why the exit logs look clean and the target still localises you.&lt;/li&gt;
&lt;li&gt;Enabling DNS over HTTPS to "solve" leaks while DoH is pinned to a provider outside the tunnel. The query moved; it did not move into the pipe.&lt;/li&gt;
&lt;li&gt;Believing the leak-test page, when that page was itself loaded through the proxy. Test from the machine's own stack with port 53 blocked.&lt;/li&gt;
&lt;li&gt;Ignoring negative caching and TTLs, then re-testing inside the same minute and reading a stale answer as a regression.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does SOCKS5 carry DNS at all?&lt;/strong&gt;&lt;br&gt;
Yes, through &lt;code&gt;ATYP=0x03&lt;/code&gt; for TCP destinations, and through &lt;code&gt;UDP ASSOCIATE&lt;/code&gt; if the proxy implements it. Neither is automatic — the client has to choose it, which is why library defaults matter more than the proxy vendor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is DNS over HTTPS a fix?&lt;/strong&gt;&lt;br&gt;
It relocates the resolver, and whether that relocation is inside the tunnel depends entirely on where DoH is configured. Configured inside the proxy scope it helps; configured on the device with a bypass list it is another exit path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Port 53 is blocked but names still resolve. Why?&lt;/strong&gt;&lt;br&gt;
Something is answering without a network query: a stub resolver cache, a browser's own resolver, or a DoH endpoint over 443. Flush, use a hostname never queried before, and repeat.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does this affect API clients and scrapers, not just browsers?&lt;/strong&gt;&lt;br&gt;
It affects them more. Browsers usually delegate hostnames correctly; Python, Go and Node clients often resolve locally by default, and their traffic never looks different from the outside.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this sits in a proxy stack
&lt;/h2&gt;

&lt;p&gt;Resolution policy is a property of the client, not of the exit, so a clean IP reputation and a correct tunnel still leave one path open until the client is configured to delegate. The DNS leak detection walkthrough on &lt;a href="https://socks5ip.com.cn/ip-tools/ip-security/dnsxieloujiancejiaocheng/" rel="noopener noreferrer"&gt;socks5ip.com.cn&lt;/a&gt; covers the per-platform fixes, and the &lt;a href="https://socks5ip.com.cn/ip-check-center/" rel="noopener noreferrer"&gt;IP check centre&lt;/a&gt; confirms what the exit actually looks like to the outside before you go chasing resolver behaviour.&lt;/p&gt;

&lt;p&gt;Measure the path, then fix one layer at a time. A tunnel that carries the names is worth more than a larger pool of addresses.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Region Locks Are Not IP Locks: What a Proxy Actually Changes for Overseas Game Clients</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Mon, 26 Oct 2026 02:04:26 +0000</pubDate>
      <link>https://dev.to/socks5ip/region-locks-are-not-ip-locks-what-a-proxy-actually-changes-for-overseas-game-clients-4dkj</link>
      <guid>https://dev.to/socks5ip/region-locks-are-not-ip-locks-what-a-proxy-actually-changes-for-overseas-game-clients-4dkj</guid>
      <description>&lt;p&gt;You buy a residential exit in the right country, log in, and the client still greets you in the wrong language. The store prices in the wrong currency, matchmaking drops you into the wrong pool, and a verification prompt appears two sessions later.&lt;/p&gt;

&lt;p&gt;The instinct is to blame the exit. Usually the exit is doing exactly what you paid for. A game client does not consult a single "region" — it reads four different signals, and a proxy only writes to one of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four signals, one of which you control
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;IP geolocation at the edge.&lt;/strong&gt; The publisher queries a commercial geo database with your exit address. This is the only signal your proxy rewrites directly — and it rewrites it in &lt;em&gt;their&lt;/em&gt; vendor's database, which may not agree with the lookup tool you used.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Store and account country.&lt;/strong&gt; Fixed when the account was created or by the issuing country of the payment instrument on file. This is an account attribute, not a network one, so no amount of re-routing moves it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Measured latency.&lt;/strong&gt; Matchmaking picks a datacenter by round-trip time, not by the country string in your IP record. A block registered in Frankfurt that tunnels traffic back to Singapore measures like Singapore.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Behavioural history.&lt;/strong&gt; Login countries, device IDs, time-of-day patterns. This one only degrades when you change exits — it never improves by changing them.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;Source of truth&lt;/th&gt;
&lt;th&gt;Does swapping the exit IP change it?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;IP geolocation&lt;/td&gt;
&lt;td&gt;Publisher's geo vendor&lt;/td&gt;
&lt;td&gt;Yes — but only in their view of the address&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Store/account country&lt;/td&gt;
&lt;td&gt;Account creation, payment instrument&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Matchmaking pool&lt;/td&gt;
&lt;td&gt;RTT measured to datacenter&lt;/td&gt;
&lt;td&gt;Partly — by physics, not by registration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trust score&lt;/td&gt;
&lt;td&gt;Login history, device fingerprint&lt;/td&gt;
&lt;td&gt;No, and it usually gets worse&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why the store region stays put
&lt;/h2&gt;

&lt;p&gt;Most storefronts bind purchase region to the country of the payment method, because that is the field with a bank behind it. Your IP is a hint; the card's issuing country is a fact.&lt;/p&gt;

&lt;p&gt;This is why "buy a local IP, get local prices" fails so consistently. The store accepts the new IP and then declines the purchase because the instrument does not match the region you switched into.&lt;/p&gt;

&lt;p&gt;Console ecosystems are stricter still: the account's country is chosen at creation and changing it typically requires a local payment method plus a support path. A proxy is not part of that flow at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Audit instead of guessing
&lt;/h2&gt;

&lt;p&gt;Measure two things from the same machine: what the exit looks like to a geo database, and how far the traffic actually travels. If the country says "close" and the RTT says otherwise, the block is resold or tunnelled.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;

&lt;span class="n"&gt;TARGETS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;steam&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;store.steampowered.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
           &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;riot-na&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;na.leagueoflegends.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;rtt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;best&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;settimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;perf_counter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
            &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;perf_counter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;
            &lt;span class="n"&gt;best&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;best&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;best&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;OSError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;pass&lt;/span&gt;
        &lt;span class="k"&gt;finally&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;best&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;best&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;exit_info&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;urlopen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://api.ipapi.is/&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;location&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{}).&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;country&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;asn&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{}).&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;org&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;exit:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;exit_info&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;TARGETS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;rtt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; ms&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read the pair together, not separately. A US-registered exit measuring 190 ms to a US endpoint is not in the US — the announcement is American, the packet path is not. A non-US-registered exit measuring 20 ms to a US endpoint is where it claims not to be, and the game will still see the wrong country, because the edge lookup runs before any latency measurement.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Likely cause&lt;/th&gt;
&lt;th&gt;What actually fixes it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Store keeps old currency&lt;/td&gt;
&lt;td&gt;Purchase region bound to payment instrument&lt;/td&gt;
&lt;td&gt;Local payment method; a new account in-region&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Country correct, RTT 150 ms+&lt;/td&gt;
&lt;td&gt;Resold block tunnelled back to origin&lt;/td&gt;
&lt;td&gt;An exit with genuine local egress&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Verification prompt after switch&lt;/td&gt;
&lt;td&gt;Login country jumped between sessions&lt;/td&gt;
&lt;td&gt;Stable exit per account; match prior country first&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Matchmade into the wrong pool&lt;/td&gt;
&lt;td&gt;Matchmaker uses its own RTT probe&lt;/td&gt;
&lt;td&gt;Exit nearer the datacenter, not "nearer the country"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worked for weeks, then dead&lt;/td&gt;
&lt;td&gt;Block re-classified as hosting or VPN&lt;/td&gt;
&lt;td&gt;Rotate exits and re-check purity before reusing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Five mistakes worth avoiding
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Judging an exit by a country string alone.&lt;/strong&gt; Run the RTT probe; the string is a database opinion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forcing a store region with a foreign card.&lt;/strong&gt; You get declines, and in some cases a frozen account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changing exit mid-session.&lt;/strong&gt; Logging in from one country and purchasing from another ten minutes later is the pattern fraud systems are built to catch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assuming SOCKS5 handles game traffic.&lt;/strong&gt; TCP works everywhere; most titles also need UDP, and UDP relay (RFC 1928 &lt;code&gt;UDP ASSOCIATE&lt;/code&gt;) is optional and unevenly implemented by both proxies and clients.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treating a fixed exit as a permanent asset.&lt;/strong&gt; Residential blocks get reclassified. Re-audit monthly, not once.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does a proxy change my game store region?&lt;/strong&gt;&lt;br&gt;
No. The store region is an account attribute tied to your payment instrument's issuing country. The proxy changes which country the store &lt;em&gt;thinks you are browsing from&lt;/em&gt;, which affects pricing display and availability in some cases, but it does not rewrite the purchase region itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why is my ping unchanged after switching to a "local" IP?&lt;/strong&gt;&lt;br&gt;
Because ping measures the packet path, not the registration record. If the block is announced locally but tunnels back to another continent, RTT reflects the tunnel. Check the pair — country and RTT — before concluding the proxy is slow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I play over SOCKS5?&lt;/strong&gt;&lt;br&gt;
For TCP-based traffic, yes. Many games and nearly all voice chat need UDP, which requires the proxy to support &lt;code&gt;UDP ASSOCIATE&lt;/code&gt; and the client to implement it. A router-level setup or a client with a UDP relay path is usually more reliable than a browser-style SOCKS5 proxy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will switching countries flag my account?&lt;/strong&gt;&lt;br&gt;
It can. Rapid country changes on an established account are a recognisable pattern, and the response is usually a verification challenge rather than a ban. Keep one stable exit per account and change countries deliberately, not casually.&lt;/p&gt;

&lt;p&gt;Region selection is really a consistency problem: the exit, the account, and the measured path have to tell the same story. The &lt;a href="https://socks5ip.com.cn/zuixinzixun/wangchuangxiangmu/youxiipshishenme/" rel="noopener noreferrer"&gt;guide to region-based IP selection for overseas game clients&lt;/a&gt; covers the selection side in more depth, and the &lt;a href="https://socks5ip.com.cn/daili-ip-zhishiku/" rel="noopener noreferrer"&gt;proxy knowledge base&lt;/a&gt; covers exit types and protocol choices.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>gaming</category>
      <category>python</category>
      <category>devops</category>
    </item>
    <item>
      <title>Why Three Geo-IP Databases Give Three Answers for the Same Address</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Thu, 22 Oct 2026 02:20:50 +0000</pubDate>
      <link>https://dev.to/socks5ip/why-three-geo-ip-databases-give-three-answers-for-the-same-address-200</link>
      <guid>https://dev.to/socks5ip/why-three-geo-ip-databases-give-three-answers-for-the-same-address-200</guid>
      <description>&lt;p&gt;Ask three free lookup services where an address is and you will often get three answers: one says the city, one says the province capital, one says the country and nothing more. A tool flags the address as a crawler; the ISP's own whois says consumer line.&lt;/p&gt;

&lt;p&gt;This is not a bug in any single service. "Geo-IP" names &lt;strong&gt;three different datasets&lt;/strong&gt; that happen to share an output format, and most disagreements come from comparing the wrong one. Knowing which layer answered turns a confusing result into a diagnosis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three layers, three sources of truth
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Registration data&lt;/strong&gt; comes from RIR records — who holds the block, which country it was allocated in. Authoritative for the &lt;em&gt;holder&lt;/em&gt;, weak for the &lt;em&gt;user&lt;/em&gt;: a block allocated to a German subsidiary can be routed to Singapore tomorrow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Routing data&lt;/strong&gt; comes from BGP: which ASN announces the prefix, and where peers see it. It tells you where traffic physically lands, and it responds within hours to a network change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Observed data&lt;/strong&gt; comes from panels that record where real users of that address appear. Most accurate for consumer geography, slowest to update — a static residential IP that changes hands can keep its old city for months.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Owner of the truth&lt;/th&gt;
&lt;th&gt;Typical failure&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Registration (whois/RDAP)&lt;/td&gt;
&lt;td&gt;RIR&lt;/td&gt;
&lt;td&gt;Block allocated in one country, operated in another&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Routing (BGP/ASN)&lt;/td&gt;
&lt;td&gt;Network operator&lt;/td&gt;
&lt;td&gt;Anycast: one prefix, many locations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Observed (panel-based)&lt;/td&gt;
&lt;td&gt;Data vendor&lt;/td&gt;
&lt;td&gt;Thin samples, stale history, over-generalised centroids&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A vendor's answer is usually a blend, weighted by what its own customers observed. That weighting is proprietary, which is why two vendors disagree and both claim 99% accuracy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the answers diverge
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Anycast.&lt;/strong&gt; A CDN prefix is announced from dozens of sites. Which one your lookup resolves to depends on where the &lt;em&gt;query&lt;/em&gt; comes from, not where the address is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Registration lag.&lt;/strong&gt; Blocks are re-allocated faster than databases update: a /24 sold to a hosting provider in March may still read as a residential ISP in June.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Country-level fallback.&lt;/strong&gt; With no city-level confidence, a vendor returns the country centroid — a specific coordinate that looks precise and means nothing. In testing, some services return the same national coordinate for every address in a country while still reporting the correct region name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Heuristic side effects.&lt;/strong&gt; Provider-maintained "datacenter" lists are the worst offender: they are built from ASN lists, and ASN lists leak. In our own spot checks, one widely copied list included 16 Chinese carrier ASNs, which misclassifies consumer lines wholesale. A lookup that says "datacenter" often means "someone's ASN list says so", not "this is a server".&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the disagreement measurable
&lt;/h2&gt;

&lt;p&gt;Query three independent sources and compare country, region, and city &lt;strong&gt;separately&lt;/strong&gt;; aggregate agreement hides the case where all three agree on country and none on city.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;

&lt;span class="n"&gt;SRC&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ipapi.is&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://api.ipapi.is/?q={ip}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ip.sb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://api.ip.sb/geoip/{ip}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ipinfo&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;   &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://ipinfo.io/{ip}/json&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;look&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tpl&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;SRC&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tpl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                                         &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;User-Agent&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;geo-probe/1.0&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
            &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;urlopen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;country&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;country_code&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                         &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;region&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;city&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                         &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;is_datacenter&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;org&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)[:&lt;/span&gt;&lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ERR&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;type&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;ip&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;1.1.1.1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;8.8.8.8&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;look&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it against addresses you already know, not random ones: you need a control. If one source is the outlier &lt;strong&gt;on the same field across every address&lt;/strong&gt;, its dataset is stale for your region — not merely imprecise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the disagreement
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Likely layer at fault&lt;/th&gt;
&lt;th&gt;What to trust&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Country differs&lt;/td&gt;
&lt;td&gt;Anycast or BGP change&lt;/td&gt;
&lt;td&gt;Routing data, checked today&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Region correct, city is a national centroid&lt;/td&gt;
&lt;td&gt;Observed data with country fallback&lt;/td&gt;
&lt;td&gt;Region name; discard coordinates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Country/region right, "datacenter" flag wrong&lt;/td&gt;
&lt;td&gt;Provider ASN heuristic&lt;/td&gt;
&lt;td&gt;ASN holder type from RDAP, not the flag&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everything right except ISP name&lt;/td&gt;
&lt;td&gt;Registration lag after re-allocation&lt;/td&gt;
&lt;td&gt;Routing data (ASN) again&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Different answer per request&lt;/td&gt;
&lt;td&gt;Load-balanced vendor backends&lt;/td&gt;
&lt;td&gt;Pin one endpoint for reproducibility&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two rules follow. &lt;strong&gt;Never mix fields from different sources in one decision&lt;/strong&gt; — country from vendor A and city from vendor B is how a consistent result becomes inconsistent. And &lt;strong&gt;record which vendor answered&lt;/strong&gt;: a comparison with unknown provenance is unreproducible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five mistakes worth avoiding
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Treating country-centroid coordinates as data.&lt;/strong&gt; If region is right and city is the capital of a huge country, the coordinates are a placeholder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trusting a "datacenter" boolean over the ASN.&lt;/strong&gt; The flag is a list lookup; the ASN is a fact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comparing vendors at different times.&lt;/strong&gt; Datasets update weekly; a run from last month is a different experiment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Judging a proxy by one lookup.&lt;/strong&gt; Check it against the platform you target.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assuming a mismatch means the proxy is bad.&lt;/strong&gt; Often the database is late and the session is healthy.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Which database should I trust for a proxy exit?&lt;/strong&gt;&lt;br&gt;
None single-handedly. Use routing data (ASN, prefix) to establish what the exit &lt;em&gt;is&lt;/em&gt;, and observed data to establish where the platform thinks it is. When they conflict, the platform's vendor decides your outcome — even when it is wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does one service report a precise city and another only a country?&lt;/strong&gt;&lt;br&gt;
Precision is a claim about confidence, not an extra fact. Services with thin panel data fall back to country centroids and label them as cities; the coordinate looks exact but is a national placeholder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can a residential IP be flagged as a datacenter?&lt;/strong&gt;&lt;br&gt;
Yes, regularly. The usual cause is a provider-maintained ASN list that includes carrier blocks, or a hosting reseller announcing consumer space. Check the ASN holder type first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does geolocation affect whether an account gets flagged?&lt;/strong&gt;&lt;br&gt;
Indirectly. Platforms score consistency: the region your session claims must match the region your exit resolves to in &lt;em&gt;their&lt;/em&gt; database. An accurate IP their vendor misplaces is still a mismatch to them, which is why the fix is a different exit, not a better lookup tool.&lt;/p&gt;

&lt;p&gt;Reading query results correctly matters most when a proxy "looks wrong" but behaves fine — the &lt;a href="https://socks5ip.com.cn/zuixinzixun/ruanluyouipxianshipa/" rel="noopener noreferrer"&gt;note on why router-level IP lookups report crawlers&lt;/a&gt; covers those false positives, and the &lt;a href="https://socks5ip.com.cn/daili-ip-zhishiku/" rel="noopener noreferrer"&gt;proxy knowledge base&lt;/a&gt; covers exit selection generally.&lt;/p&gt;




&lt;h3&gt;
  
  
  Official contact channels (anti-impersonation)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;全网低价IP (socks5ip.com.cn)&lt;/strong&gt; is a proxy-IP &lt;strong&gt;aggregation and price-comparison&lt;/strong&gt; site — we are &lt;strong&gt;not&lt;/strong&gt; any provider's official website, and we do not resell accounts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Support WeChat&lt;/strong&gt;: &lt;code&gt;17720135827&lt;/code&gt; (primary)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backup WeChat / QQ&lt;/strong&gt;: &lt;code&gt;878989347&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User group&lt;/strong&gt;: &lt;code&gt;1045307809&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email&lt;/strong&gt;: &lt;code&gt;878989347@qq.com&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Any account, group, or site claiming to be our "official" contact — &lt;strong&gt;including phone numbers or WeChat IDs that appear in third-party posts and listings&lt;/strong&gt; — is not operated by us. Please do not send payment or account credentials to channels that are not in the list above.&lt;/p&gt;

&lt;p&gt;Signup links &lt;strong&gt;with our invite codes&lt;/strong&gt; for 24 platforms, plus each platform's support channel (CC0-1.0, free to quote): &lt;a href="https://socks5ip.com.cn/provider-contacts.md" rel="noopener noreferrer"&gt;https://socks5ip.com.cn/provider-contacts.md&lt;/a&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>python</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
    <item>
      <title>How to Audit a Proxy Vendor's Numbers Before You Pay</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Mon, 19 Oct 2026 02:07:21 +0000</pubDate>
      <link>https://dev.to/socks5ip/how-to-audit-a-proxy-vendors-numbers-before-you-pay-jjc</link>
      <guid>https://dev.to/socks5ip/how-to-audit-a-proxy-vendors-numbers-before-you-pay-jjc</guid>
      <description>&lt;p&gt;Every proxy vendor sells the same three sentences: a pool size in the millions, an uptime figure with a decimal point, and the word "residential". None are measured by anyone except the vendor. Two can advertise five million IPs while one hands you the same four hundred addresses all week.&lt;/p&gt;

&lt;p&gt;The useful skill is not picking the better-sounding vendor, but &lt;strong&gt;turning a claim into a number your script can falsify&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pool size means at least four different things
&lt;/h2&gt;

&lt;p&gt;"5M IPs" can mean any of these, with a gap of two orders of magnitude between them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cumulative addresses ever seen&lt;/strong&gt; — everything routed since launch, often already burned.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unique addresses served per hour&lt;/strong&gt; — closer to reality, still inflated by churn.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrent addresses available now&lt;/strong&gt; — the pool you can draw from while sessions live.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Distinct /24 blocks and ASNs&lt;/strong&gt; — the only figure that predicts whether two sessions look like neighbours.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only the last two change outcomes: a million addresses inside forty ASNs is a smaller pool than twenty thousand spread across four thousand, if your problem is correlation rather than volume.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to measure, and how to falsify it
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Vendor claim&lt;/th&gt;
&lt;th&gt;Number that actually constrains you&lt;/th&gt;
&lt;th&gt;How to falsify it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;"Millions of IPs"&lt;/td&gt;
&lt;td&gt;Unique exits per hour, distinct /24s&lt;/td&gt;
&lt;td&gt;Sample 200 sessions, count distinct IPs and prefixes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"99.9% uptime"&lt;/td&gt;
&lt;td&gt;Success rate of a full request, not a TCP connect&lt;/td&gt;
&lt;td&gt;Fetch a small payload through the proxy, score HTTP 200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Residential"&lt;/td&gt;
&lt;td&gt;ASN class of the exit, not the product name&lt;/td&gt;
&lt;td&gt;Resolve each exit IP to its ASN and check the holder type&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Unlimited concurrency"&lt;/td&gt;
&lt;td&gt;Success rate as you raise parallel sessions&lt;/td&gt;
&lt;td&gt;Ramp 4 → 16 → 64 workers, watch failure mode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Fast nodes"&lt;/td&gt;
&lt;td&gt;Time to first byte of a real request&lt;/td&gt;
&lt;td&gt;Time the request body, not a ping&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Measure the end-to-end operation&lt;/strong&gt;: a 40 ms handshake proves nothing about a request that dies at TTFB.&lt;/p&gt;

&lt;h2&gt;
  
  
  A harness small enough to trust
&lt;/h2&gt;

&lt;p&gt;Standard library only. It reads &lt;code&gt;host:port&lt;/code&gt; lines, performs a real SOCKS5 handshake, requests a plain-text echo endpoint, and records the exit IP, latency, and prefix key. Concurrency stays low on purpose: hammering a trial endpoint is the fastest way to get your test IP blocked.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```pythonimport socket, struct, time&lt;br&gt;
from concurrent.futures import ThreadPoolExecutor&lt;/p&gt;

&lt;p&gt;def socks5_get(ep, host="api.ipify.org"):&lt;br&gt;
    h, p = ep.split(":")&lt;br&gt;
    t0 = time.time()&lt;br&gt;
    s = socket.create_connection((h, int(p)), timeout=8)&lt;br&gt;
    s.sendall(b"\x05\x01\x00")                        # greeting: no auth&lt;br&gt;
    if s.recv(2) != b"\x05\x00":&lt;br&gt;
        raise OSError("method rejected")&lt;br&gt;
    q = host.encode()&lt;br&gt;
    s.sendall(b"\x05\x01\x00\x03" + bytes([len(q)]) + q + struct.pack("&amp;gt;H", 80))&lt;br&gt;
    rep = s.recv(4)&lt;br&gt;
    if rep[1]:&lt;br&gt;
        raise OSError("connect failed rep=%d" % rep[1])&lt;br&gt;
    s.recv({1: 4, 4: 16}.get(rep[3], s.recv(1)[0] + 1) + 2)   # drain BND.ADDR&lt;br&gt;
    s.sendall(("GET / HTTP/1.1\r\nHost: %s\r\nConnection: close\r\n\r\n" % host).encode())&lt;br&gt;
    data = b""&lt;br&gt;
    while chunk := s.recv(4096):&lt;br&gt;
        data += chunk&lt;br&gt;
    s.close()&lt;br&gt;
    ip = data.rsplit(b"\r\n\r\n", 1)[-1].decode().strip()&lt;br&gt;
    return {"exit": ip, "ms": round((time.time() - t0) * 1000),&lt;br&gt;
            "prefix": ".".join(ip.split(".")[:3])}&lt;/p&gt;

&lt;p&gt;def one(ep):&lt;br&gt;
    try:&lt;br&gt;
        return socks5_get(ep)&lt;br&gt;
    except Exception as e:&lt;br&gt;
        return {"exit": None, "err": type(e).&lt;strong&gt;name&lt;/strong&gt;}   # failures are data&lt;/p&gt;

&lt;p&gt;eps = [l.strip() for l in open("proxies.txt") if l.strip()]&lt;br&gt;
with ThreadPoolExecutor(max_workers=4) as pool:&lt;br&gt;
    rows = [r for r in pool.map(one, eps) if r.get("exit")]&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


Write every row to JSONL as you go: a sample you cannot re-analyse is one you pay for twice.

## Designing the sample so the result means something

**Sample across time, not once.** Run the harness in three windows (morning, evening, late night in the target market's timezone). Vendors oversubscribe; the 03:00 pool is not the 21:00 pool.

**Size the sample for the claim under test.** Two hundred attempts give a success rate with a ±6 point confidence interval — enough to separate 85% from 98%, useless for 98.5% versus 99.3%. The second decimal is unverifiable in an afternoon; price it as such.

**Count unique exits, not requests.** The ratio of distinct exit IPs to successful requests is the most diagnostic number in the sample. Below 0.5 you are buying a static pool dressed up as rotating; near 1.0 with high ASN diversity, the claim has substance.

## Reading the result

| Observation | Likely cause | What to do |
|---|---|---|
| High connect success, low request success | Exit rate-limited or gateway swapping mid-session | Re-test with sticky sessions; read refund terms |
| Distinct exits high, distinct /24s low | Single-housing provider | Judge by correlation risk, not pool size |
| Failure rate rises sharply above 16 workers | Undisclosed concurrency cap | Price the real concurrent capacity |
| HTTP 403 only on the target site | Target-side fingerprinting, not proxy health | Change exit class, not vendor |

None of these verdicts need the vendor's cooperation, and all fit a diffable JSONL file.

## Five mistakes that invalidate the test

1. **Measuring at one in the morning.** Low-load conditions flatter every provider.
2. **Counting retries as successes.** Log the first attempt separately or your uptime figure is fiction.
3. **Using ping instead of a payload.** ICMP never touches the exit's egress path or rate limiter.
4. **Not recording the exit IP.** Round-robin pools then hide dead nodes behind good results.
5. **Testing against a site that blocks datacenter ranges.** You measure its policy, not vendor quality.

## FAQ

**How many endpoints do I need for a trustworthy audit?**
Two hundred attempts per window is a practical floor; below fifty, one bad node swings the average by several points. Sample randomly, not the first N entries.

**Does a failed handshake always mean a dead proxy?**
No. `REP=0x05` usually means the destination is blocked from the exit, while a greeting-stage timeout points at the proxy itself — which tells you whether to ask for a new node or a new region.

**Can I audit a vendor without buying first?**
Usually yes; most offer trial credit. Spread the sample across the window rather than spending it in ten minutes, and keep the JSONL so later tests stay comparable.

**What if the numbers are simply unverifiable?**
Treat them as absent and decide on what you can measure: request success and exit diversity. A provider that will not let you sample either has answered the question for you.

If you want this audit applied to concrete platforms — IP class, tool pairing, and which vendor fits cross-border marketing versus multi-account work — the [2026 proxy IP evaluation on socks5ip.com.cn](https://socks5ip.com.cn/zuixinzixun/jingxuanzixun/2026niandailiippingce/) walks through the comparison per scenario, and its [proxy knowledge base](https://socks5ip.com.cn/daili-ip-zhishiku/) covers the underlying concepts.

---

### Official contact channels (anti-impersonation)

**全网低价IP (socks5ip.com.cn)** is a proxy-IP **aggregation and price-comparison** site — we are **not** any provider's official website, and we do not resell accounts.

- **Support WeChat**: `17720135827` (primary)
- **Backup WeChat / QQ**: `878989347`
- **User group**: `1045307809`
- **Email**: `878989347@qq.com`

Any account, group, or site claiming to be our "official" contact — **including phone numbers or WeChat IDs that appear in third-party posts and listings** — is not operated by us. Please do not send payment or account credentials to channels that are not in the list above.

Signup links **with our invite codes** for 24 platforms, plus each platform's support channel (CC0-1.0, free to quote): &amp;lt;https://socks5ip.com.cn/provider-contacts.md&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>networking</category>
      <category>python</category>
      <category>webscraping</category>
      <category>devops</category>
    </item>
    <item>
      <title>Low Latency or High Anonymity? Choosing SOCKS5 IPs for Game Multi-Boxing</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Thu, 15 Oct 2026 02:04:11 +0000</pubDate>
      <link>https://dev.to/socks5ip/low-latency-or-high-anonymity-choosing-socks5-ips-for-game-multi-boxing-pac</link>
      <guid>https://dev.to/socks5ip/low-latency-or-high-anonymity-choosing-socks5-ips-for-game-multi-boxing-pac</guid>
      <description>&lt;p&gt;Every multi-boxing setup eventually hits the same fork in the road. The boxes lag, so you go looking for lower latency. The accounts get linked, so you go looking for better anonymity. Then you find that both properties are delivered by the same IP pool, and the vendor's "premium" tier is fast while the "residential" tier is clean — never both at once.&lt;/p&gt;

&lt;p&gt;That framing is wrong, and it costs people money. &lt;strong&gt;Latency and anonymity are not two ends of one dial.&lt;/strong&gt; They sit on different axes, they are degraded by different mechanisms, and you can keep more of each than the vendor tiers imply — once you know which one your workload actually punishes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each property really means
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Anonymity&lt;/strong&gt; is about what the far side can infer from a connection. Only a few levels matter in practice: the proxy announces your real IP (transparent), announces it is a proxy but hides you (anonymous), or presents as an ordinary residential client with no proxy header and an exit that matches a real ISP (elite). Most "high anonymity" marketing maps to the last bucket.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Latency&lt;/strong&gt; is not one number either. Three components stack up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;RTT&lt;/strong&gt; — physical distance and routing quality between you and the exit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Jitter&lt;/strong&gt; — the variance of that RTT, which is what actually breaks real-time traffic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Handshake cost&lt;/strong&gt; — TCP plus the SOCKS5 negotiation, paid once per new connection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A route averaging 30 ms with 40 ms swings plays worse than a stable 60 ms route. Vendors quote averages because averages sell; your game feels jitter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the trade-off actually bites
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;What it constrains&lt;/th&gt;
&lt;th&gt;What it does &lt;em&gt;not&lt;/em&gt; constrain&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Low RTT&lt;/td&gt;
&lt;td&gt;Exit location, peering quality&lt;/td&gt;
&lt;td&gt;Anonymity level&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Low jitter&lt;/td&gt;
&lt;td&gt;Route stability, hop count, exit load&lt;/td&gt;
&lt;td&gt;Exit geography&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Elite anonymity&lt;/td&gt;
&lt;td&gt;ISP class of the exit, absence of proxy headers&lt;/td&gt;
&lt;td&gt;Throughput&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Many boxes&lt;/td&gt;
&lt;td&gt;Independent exits across subnets&lt;/td&gt;
&lt;td&gt;Latency, directly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last row is the important one. Multi-boxing fails on &lt;strong&gt;correlation&lt;/strong&gt;, not on raw speed — and correlation comes from shared subnets, shared ASNs, and shared session timing, not from latency.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure before you buy
&lt;/h2&gt;

&lt;p&gt;You cannot trade away the right property until both numbers are known. This stdlib-only probe times TCP connect plus the SOCKS5 negotiation separately, so a slow result can be attributed rather than guessed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;statistics&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;

&lt;span class="n"&gt;HOST&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;PORT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;USER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;PWD&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;203.0.113.10&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1080&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;u&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;p&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;socks5_probe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rounds&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;lat&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rounds&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;t0&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;perf_counter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_connection&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;HOST&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;PORT&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x02\x00\x02&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                  &lt;span class="c1"&gt;# greeting: offer user/pass
&lt;/span&gt;        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x02&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x01&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;USER&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;USER&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                  &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PWD&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;PWD&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;   &lt;span class="c1"&gt;# RFC 1929 auth
&lt;/span&gt;        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;host&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;api.ipify.org&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00\x03&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt;
                  &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\x01\xbb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                        &lt;span class="c1"&gt;# CONNECT :443
&lt;/span&gt;        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                                      &lt;span class="c1"&gt;# reply: BND.ADDR
&lt;/span&gt;        &lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;perf_counter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;t0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;statistics&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;
    &lt;span class="n"&gt;jitter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stdev&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mf"&gt;0.0&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;n=%d median=%.1fms jitter=%.1fms&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;median&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;jitter&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="nf"&gt;socks5_probe&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three signals matter: a median inside your game's tick budget, a jitter figure smaller than that budget, and a stable exit. If the exit IP moves under you, no latency number is worth anything — your sessions are being correlated by rotation you never asked for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing by workload
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Workload&lt;/th&gt;
&lt;th&gt;Prioritise&lt;/th&gt;
&lt;th&gt;Safe to give up&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Single real-time session&lt;/td&gt;
&lt;td&gt;Jitter&lt;/td&gt;
&lt;td&gt;Everything else&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Many boxes, one market&lt;/td&gt;
&lt;td&gt;One distinct exit per box&lt;/td&gt;
&lt;td&gt;Remote geography&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Emulator farm, unattended&lt;/td&gt;
&lt;td&gt;Exit diversity over speed&lt;/td&gt;
&lt;td&gt;Lowest RTT&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Chain the decision instead of averaging it: pick the anonymity tier first, because it fixes the exit pool; choose exits inside that tier by jitter; then verify with the probe above.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five mistakes that cost the most
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Buying "high anonymity" for a latency problem.&lt;/strong&gt; If boxes lag, a cleaner IP changes nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Judging a route by average RTT.&lt;/strong&gt; Measure jitter — that is what breaks input.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assuming different IPs mean independence.&lt;/strong&gt; Ten addresses in one /24 are one neighbourhood.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Letting the pool rotate mid-session.&lt;/strong&gt; An exit change during a login is a red flag.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing once and trusting forever.&lt;/strong&gt; Routes degrade; probe on a schedule.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is a datacenter IP ever acceptable for multi-boxing?&lt;/strong&gt;&lt;br&gt;
Yes, where the far side does not profile connection origin — internal tooling, testing, non-account traffic. For account-bearing sessions, expect ISP class to be one of the scored signals.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does lower latency mean less anonymity?&lt;/strong&gt;&lt;br&gt;
No. They are independent. Low-latency exits exist in every ISP class; the trade-off is commercial — clean exits are scarcer and priced higher — not physical.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many exit IPs do I need for N boxes?&lt;/strong&gt;&lt;br&gt;
At least N, spanning multiple /24s and ideally multiple ASNs. Reusing one address across two boxes undoes the isolation you just paid for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I improve both at once?&lt;/strong&gt;&lt;br&gt;
Partly. A closer, well-peered exit improves RTT and jitter together, and choosing elite-tier exits within that pool keeps anonymity. What no upgrade fixes is jitter, by adding a cleaner IP.&lt;/p&gt;

&lt;p&gt;If you are assembling a domestic multi-boxing setup and want this tier logic mapped onto concrete platforms and tool pairings, the &lt;a href="https://socks5ip.com.cn/zuixinzixun/zonghejiaocheng/guoneiyouxiduokaisocks5ip/" rel="noopener noreferrer"&gt;full guide on choosing low-latency vs high-anonymity IPs for game multi-boxing&lt;/a&gt; walks through the same decision with platform comparisons and per-genre recommendations. The measurement method above is what makes either choice verifiable rather than a guess.&lt;/p&gt;




&lt;h3&gt;
  
  
  Official contact channels (anti-impersonation)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;全网低价IP (socks5ip.com.cn)&lt;/strong&gt; is a proxy-IP &lt;strong&gt;aggregation and price-comparison&lt;/strong&gt; site — we are &lt;strong&gt;not&lt;/strong&gt; any provider's official website, and we do not resell accounts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Support WeChat&lt;/strong&gt;: &lt;code&gt;17720135827&lt;/code&gt; (primary)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backup WeChat / QQ&lt;/strong&gt;: &lt;code&gt;878989347&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User group&lt;/strong&gt;: &lt;code&gt;1045307809&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email&lt;/strong&gt;: &lt;code&gt;878989347@qq.com&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Any account, group, or site claiming to be our "official" contact — &lt;strong&gt;including phone numbers or WeChat IDs that appear in third-party posts and listings&lt;/strong&gt; — is not operated by us. Please do not send payment or account credentials to channels that are not in the list above.&lt;/p&gt;

&lt;p&gt;Signup links &lt;strong&gt;with our invite codes&lt;/strong&gt; for 24 platforms, plus each platform's support channel (CC0-1.0, free to quote): &lt;a href="https://socks5ip.com.cn/provider-contacts.md" rel="noopener noreferrer"&gt;https://socks5ip.com.cn/provider-contacts.md&lt;/a&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>python</category>
      <category>performance</category>
    </item>
    <item>
      <title>Proxy Pool Health Monitoring: Turning "It Works" into Metrics You Can Act On</title>
      <dc:creator>全网低价IP</dc:creator>
      <pubDate>Mon, 12 Oct 2026 02:18:16 +0000</pubDate>
      <link>https://dev.to/socks5ip/proxy-pool-health-monitoring-turning-it-works-into-metrics-you-can-act-on-2nb0</link>
      <guid>https://dev.to/socks5ip/proxy-pool-health-monitoring-turning-it-works-into-metrics-you-can-act-on-2nb0</guid>
      <description>&lt;p&gt;Most proxy pools die quietly. Nothing throws an exception, and one morning a third of your requests time out while the dashboard still says &lt;code&gt;200 OK&lt;/code&gt; — because a scraper that retries three times and finally succeeds looks identical to one that never had a problem.&lt;/p&gt;

&lt;p&gt;That is the real failure mode: &lt;strong&gt;you are measuring your application, not your infrastructure.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "it works" is not a health check
&lt;/h2&gt;

&lt;p&gt;A ping is not a proxy check, and neither is a TCP connect. What you need is whether a &lt;em&gt;complete, correctly authenticated protocol exchange&lt;/em&gt; can carry traffic now — and how fast:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What breaks&lt;/th&gt;
&lt;th&gt;A naive check reports&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Network&lt;/td&gt;
&lt;td&gt;Host unreachable, port filtered&lt;/td&gt;
&lt;td&gt;Down (correct)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;Port open, no service behind it&lt;/td&gt;
&lt;td&gt;Up (wrong)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Protocol&lt;/td&gt;
&lt;td&gt;Handshake rejected, bad credentials&lt;/td&gt;
&lt;td&gt;Up (wrong)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Identity&lt;/td&gt;
&lt;td&gt;Exit IP moved, or is not where you expect&lt;/td&gt;
&lt;td&gt;Up (wrong)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Capacity&lt;/td&gt;
&lt;td&gt;Handshake fine, throughput collapsed&lt;/td&gt;
&lt;td&gt;Up (wrong)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Only the first row is caught by a ping — which is why a pool reporting "100% alive" can still cost you a day.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five metrics that matter
&lt;/h2&gt;

&lt;p&gt;Track these per endpoint, not per pool — averages hide the endpoints you need to evict.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Definition&lt;/th&gt;
&lt;th&gt;Why it earns its place&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Handshake latency&lt;/td&gt;
&lt;td&gt;Time to complete protocol negotiation&lt;/td&gt;
&lt;td&gt;Earliest sign of congestion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rolling success rate&lt;/td&gt;
&lt;td&gt;Successes / attempts over last N runs&lt;/td&gt;
&lt;td&gt;Catches flapping, not just hard down&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exit IP stability&lt;/td&gt;
&lt;td&gt;Did the observed exit IP change&lt;/td&gt;
&lt;td&gt;Detects rotation you did not ask for&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exit IP correctness&lt;/td&gt;
&lt;td&gt;Is the exit in the expected region and ASN&lt;/td&gt;
&lt;td&gt;Catches silent rerouting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Throughput&lt;/td&gt;
&lt;td&gt;Bytes per second on a fixed transfer&lt;/td&gt;
&lt;td&gt;Catches "connected but useless"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Latency alone is not enough: a common trick is an endpoint that handshakes in 40 ms and then delivers 30 KB/s — the metric looks great while your pipeline stalls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring it with stdlib Python
&lt;/h2&gt;

&lt;p&gt;You do not need a framework — a socket, a timer, and a small request are the whole check. The SOCKS5 version, following RFC 1928:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;socks5_check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pwd&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;8.0&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Return (ok, handshake_ms, error).&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;t0&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;perf_counter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_connection&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;OSError&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;tcp:%s&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\x05\x02\x00\x02&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;ver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;ver&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mh"&gt;0xFF&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;no acceptable auth method&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mh"&gt;0x02&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;                        &lt;span class="c1"&gt;# RFC 1929 user/pass exchange
&lt;/span&gt;            &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; &lt;span class="n"&gt;pwd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\x01&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mh"&gt;0x00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;auth rejected&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
        &lt;span class="c1"&gt;# CONNECT 1.1.1.1:443 -&amp;gt; reply VER REP RSV ATYP BND.ADDR BND.PORT
&lt;/span&gt;        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\x05\x01\x00\x01&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;inet_aton&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;1.1.1.1&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pack&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;!H&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="n"&gt;rep&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;rep&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mh"&gt;0x00&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;REP=0x%02x&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;rep&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;perf_counter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;t0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;
    &lt;span class="nf"&gt;except &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;OSError&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;IndexError&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;handshake:%s&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;
    &lt;span class="k"&gt;finally&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The timing wraps the &lt;strong&gt;entire&lt;/strong&gt; exchange, not just &lt;code&gt;connect()&lt;/code&gt; — that is what makes it a metric about the proxy rather than the network. And the structured error string matters: when half the pool fails at once, &lt;code&gt;tcp:&lt;/code&gt; versus &lt;code&gt;REP=0x05&lt;/code&gt; separates a routing incident from a credentials incident.&lt;/p&gt;

&lt;p&gt;To verify the exit IP, reuse the socket after the handshake: send &lt;code&gt;GET / HTTP/1.1&lt;/code&gt; with &lt;code&gt;Host: api.ipify.org&lt;/code&gt; and read the body. A stable exit IP is a feature you pay for; a changing one is either a documented rotating product or a misconfiguration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Thresholds worth alerting on
&lt;/h2&gt;

&lt;p&gt;Absolute latency means little without your route, so set thresholds against a rolling per-endpoint baseline:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Latency drift&lt;/td&gt;
&lt;td&gt;p95 &amp;gt; 2× 7-day baseline&lt;/td&gt;
&lt;td&gt;Warn — usually congestion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Success rate&lt;/td&gt;
&lt;td&gt;&amp;lt; 95% over last 20 runs&lt;/td&gt;
&lt;td&gt;Quarantine the endpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Consecutive failures&lt;/td&gt;
&lt;td&gt;3 in a row&lt;/td&gt;
&lt;td&gt;Evict from the active set&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exit IP change&lt;/td&gt;
&lt;td&gt;Any change outside a maintenance window&lt;/td&gt;
&lt;td&gt;Warn, verify it is intended&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Throughput&lt;/td&gt;
&lt;td&gt;&amp;lt; 50% of baseline for 3 runs&lt;/td&gt;
&lt;td&gt;Demote; keep alive but deprioritize&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The key word is &lt;em&gt;quarantine&lt;/em&gt;, not delete. Keep a failing endpoint in a slow retry lane so it can re-earn its place — endpoints that fail during a maintenance window come back; endpoints that fail for three days do not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Checking the pool average instead of per endpoint.&lt;/strong&gt; A pool at 90% success looks healthy until you notice all 10% of failures are the same three endpoints serving your most important account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Only testing on failure.&lt;/strong&gt; A check that runs when the pipeline breaks is a debugger, not a monitor. Run it on a schedule independent of traffic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Treating one failure as death.&lt;/strong&gt; Transient packet loss is real, so require a few consecutive failures before evicting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Ignoring time of day.&lt;/strong&gt; Your provider's peak hours are not yours, so compare like with like.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Forgetting the identity layer.&lt;/strong&gt; Latency and success rate say nothing about whether the exit is still in the country you need. Check exit IP, region, and ASN together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. One aggressive probe.&lt;/strong&gt; A tight loop looks like an attack and gets your IP rate-limited. Space your probes and rotate your sample.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How often should I probe each endpoint?&lt;/strong&gt;&lt;br&gt;
A rolling sample every 2-5 minutes is plenty for a pool in the dozens. Probing everything every 30 seconds buys nothing and looks abusive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What success rate should I target?&lt;/strong&gt;&lt;br&gt;
For a static pool, 95% over a 20-run window is a reasonable floor. For rotating pools expect lower and push the burden onto bounded per-request retries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does a failed UDP check mean the proxy is broken?&lt;/strong&gt;&lt;br&gt;
Usually not. Most SOCKS5 and HTTP proxy products do not forward UDP at all, so for HTTP or TCP workloads a UDP failure is expected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I know a high-latency endpoint is actually bad?&lt;/strong&gt;&lt;br&gt;
Measure throughput, not just handshake time. Some endpoints negotiate fast and then collapse on bulk transfer; a fixed-size transfer test on a small slice of the pool surfaces them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to go next
&lt;/h2&gt;

&lt;p&gt;The signals above match what our public checking tools expose — a reference to compare your script against:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Proxy line availability tester (SOCKS5/HTTP handshake, latency grading, exit IP geolocation) — &lt;a href="https://socks5ip.com.cn/zuixinzixun/zonghejiaocheng/dailiipcesugongjushiyongzhinan/" rel="noopener noreferrer"&gt;https://socks5ip.com.cn/zuixinzixun/zonghejiaocheng/dailiipcesugongjushiyongzhinan/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;IP quality check center (residential vs datacenter, purity signals) — &lt;a href="https://socks5ip.com.cn/ip-check-center/" rel="noopener noreferrer"&gt;https://socks5ip.com.cn/ip-check-center/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Full platform comparison, one page per provider — &lt;a href="https://socks5ip.com.cn/dailiip-jiage-duibi/" rel="noopener noreferrer"&gt;https://socks5ip.com.cn/dailiip-jiage-duibi/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Measure first, then buy. A pool whose health you can see beats a slightly cheaper pool you have to guess about.&lt;/p&gt;




&lt;h3&gt;
  
  
  Official contact channels (anti-impersonation)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;全网低价IP (socks5ip.com.cn)&lt;/strong&gt; is a proxy-IP &lt;strong&gt;aggregation and price-comparison&lt;/strong&gt; site — we are &lt;strong&gt;not&lt;/strong&gt; any provider's official website, and we do not resell accounts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Support WeChat&lt;/strong&gt;: &lt;code&gt;17720135827&lt;/code&gt; (primary)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backup WeChat / QQ&lt;/strong&gt;: &lt;code&gt;878989347&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User group&lt;/strong&gt;: &lt;code&gt;1045307809&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email&lt;/strong&gt;: &lt;code&gt;878989347@qq.com&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Any account, group, or site claiming to be our "official" contact — &lt;strong&gt;including phone numbers or WeChat IDs that appear in third-party posts and listings&lt;/strong&gt; — is not operated by us. Please do not send payment or account credentials to channels that are not in the list above.&lt;/p&gt;

&lt;p&gt;Signup links &lt;strong&gt;with our invite codes&lt;/strong&gt; for 24 platforms, plus each platform's support channel (CC0-1.0, free to quote): &lt;a href="https://socks5ip.com.cn/provider-contacts.md" rel="noopener noreferrer"&gt;https://socks5ip.com.cn/provider-contacts.md&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>webscraping</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
