Open the WaytoAGI knowledge base on Feishu · 100M+ visits, open to everyone →
WaytoAGI

Knowledge Base · Learning paths

Essential Networking Basics You Need in the AI Era

In the age of AI, understanding core networking concepts has become an essential skill. From IP addresses, DNS, and proxies to VPNs and local networks, mastering these fundamentals helps you avoid account bans, succeed in overseas ventures, and smoothly run local AI models. This guide explains key concepts like IPv4, IPv6, and more in simple, easy-to-understand language.

networking basicsAI networkingIP address explainedDNS for AIVPN for AI tools

Translated from Chinese by AI. Spotted an issue? Use the feedback button.

🔗 Original link: https://x.com/gengdaJ/status/208669...

Why am I desperately catching up on networking fundamentals now? Because I’ve come to a deep realization: without this knowledge, you’ll constantly hit roadblocks in the AI era.

Level 1 — The Ladder
Many people have a ladder (proxy/VPN), but don’t really know how to use it. When the network suddenly slows down, why does it happen? Are proxies and VPNs the same thing? Can I use the same VPN on both my phone and computer? I’ve heard that a VPS can be used to set up a stable VPN—is that true, and how do you actually do it?

Level 2 — Claude & Anthropic
Everyone is familiar with Claude. Even though accounts frequently get banned, people still use it whenever they can. To be honest, the Claude desktop app is my absolute favorite AI learning tool—the interaction is genuinely delightful. To avoid getting banned, you need to understand the underlying network principles that prevent detection.

Level 3 — Local Models & AI-Native Organizations
When working with local models and building AI-native teams, you often need to deal with local networks, NAS devices, and more. At this point, you must understand the most fundamental concepts like IP and DNS.

Level 4 — Powerful Tools
Many excellent tools, such as WeChat public account scrapers or Video Account batch crawlers, require proxy configuration. Without understanding the underlying principles, you won’t know whether parallel scraping is possible, or what impact switching proxies will have on your computer.

Level 5 — Going Global to Earn USD
If you want to expand overseas and make money in dollars, mastering networking fundamentals becomes even more critical. DNS resolution is one of the most common terms in the domain world. IP addresses, network requests, bandwidth, CPU, and memory are all things you must understand when a website faces DDoS attacks—because every bit of it costs real money.

There are countless scenarios where a solid understanding of networking basics is required. This single article can’t solve all these problems at once, but I will use the most straightforward and easy-to-understand language possible to help you grasp the most fundamental network concepts you need to solve these real-world challenges.

What Is an IP Address?

IP (Internet Protocol) is a set of addressing rules used for communication on the internet. IPv4 and IPv6 are the two versions of this rule set.

The purpose of an IP address is to allow devices on a network to find each other. For example, when you open a website, your device is essentially sending a request to the website’s server: “I want to visit you—please send me the webpage content.”

After the server receives the request, how does it know where to send the data back? This is where the IP address comes in—it acts as the precise coordinates.

There are three important IP concepts you need to understand:

Type Meaning
Internal IP Address used within a local area network
Public IP Address visible on the public internet
Exit IP The IP that the target website ultimately sees

Local Area Network (LAN) Supplement:
A LAN is a private network formed by connecting multiple devices within a small area—similar to walkie-talkies used within a company.

If you have a computer, phone, and iPad at home, they are all inside your home LAN, so they each have their own internal IP addresses, typically looking like this:

Computer: 192.168.1.10
Phone: 192.168.1.11
iPad: 192.168.1.12
Router: 192.168.1.1

However, when these devices access external websites, they all go through the same public IP exit. So the website might see the same IP for all of them: 123.45.67.89.

The complete IP flow looks like this:

Computer (192.168.1.10)
→ Router (192.168.1.1)
→ Public Exit IP (123.45.67.89)
→ Target Website

Additionally, the IP address represents the network exit you are using at that moment, and it can change.

For example:

  • When you connect to Wi-Fi at home, the website sees your home broadband’s public IP.
  • When you switch to mobile data, the website sees an IP belonging to your mobile carrier.
  • When you use a proxy, VPN, or VPS, the website sees the IP of the proxy server, VPN node, or VPS instead.

1. What is IPv4?

IPv4 stands for Internet Protocol version 4, the fourth version of the Internet Protocol. IPv4 addresses typically look like this:

192.168.1.1

8.8.8.8

1.1.1.1

255.255.255.255

According to the official IPv4 specification, an IPv4 address is a 32-bit binary number — consisting of 4 octets (8 binary bits each), for a total of 32 bits. In binary form, it looks like this:

11000000101010000000000100000001

However, this format is not human-friendly, so it is divided into 4 segments:

8 bits . 8 bits . 8 bits . 8 bits

Each 8-bit segment is converted to decimal, resulting in the familiar format we see:

192.168.1.1

Taking 192.168.1.1 as an example:

192 .168 .1 .1 11000000 .10101000 .00000001 .00000001

People often say that IPv4 addresses are limited in number because an IPv4 address is essentially a 32-bit binary number. Each bit can only be 0 or 1, so the theoretical total number of IPv4 addresses is 2^32 = 4,294,967,296 — approximately 4.29 billion addresses.

Moreover, not all of these 4.29 billion addresses can be used as public IP addresses. A portion of them are reserved for special purposes such as private networks, loopback (explained later), broadcasting, documentation examples, and more.

Private IPv4 addresses are used only within local area networks (LANs). There are three major private address ranges:

10.0.0.0 ~ 10.255.255.255

172.16.0.0 ~ 172.31.255.255

192.168.0.0 ~ 192.168.255.255

The most common ones on home routers are:

192.168.0.x

192.168.1.x

For example:

192.168.1.1 — Router

192.168.1.10 — Computer

192.168.1.11 — Phone

192.168.1.12 — iPad

Many people have probably wondered the same question I once had: Why do so many computers show the IP address 192.168.1.1?

The reason is that 192.168.1.1 is a private address. It is not a public IP address, so it does not need to be globally unique. It’s similar to how Hotel A can have a Room 101 and Hotel B can also have a Room 101 — as long as they are in different hotels, there is no conflict.

There is also a special type of address called the loopback address. The most common IPv4 loopback address is 127.0.0.1, which is also commonly known as localhost (those who enjoy vibe coding are surely familiar with the classic “localhost:3000” meme).

The loopback address means “accessing yourself.” For example, if you enter http://127.0.0.1:3000 in your browser, it means you are accessing the service running on port 3000 of your own computer (ports will be explained later). It does not go through the internet or the router — the entire communication happens internally within your own machine.

2. What is IPv6?

IPv6 stands for Internet Protocol version 6, the sixth version of the Internet Protocol. It was introduced primarily because IPv4 addresses were running out.

While IPv4 uses 32 bits, IPv6 uses 128 bits. The total number of addresses is 2^128 = 340,282,366,920,938,463,463,374,607,431,768,211,456. With this many addresses, we no longer have to worry about running out of IPs.

IPv6 does not use the “dotted decimal” format of IPv4. Instead, it uses “hexadecimal with colon separation.” A complete IPv6 address looks like this (divided into 8 groups):

2001 : 0db8 : 85a3 : 0000 : 0000 : 8a2e : 0370 : 7334

Each group consists of 4 hexadecimal characters. Hexadecimal characters include:

0 1 2 3 4 5 6 7 8 9 a b c d e f

The standard text representation of an IPv6 address is written as x:x:x:x:x:x:x:x — that is, 8 groups of hexadecimal numbers separated by colons.

Because IPv6 addresses are very long, abbreviations are allowed. For example, the full address 2001:0db8:0000:0000:0000:0000:0000:0001 can have leading zeros in each group omitted, becoming: 2001:db8:0:0:0:0:0:1.

Furthermore, if there are consecutive groups of 0000 in the middle, they can be replaced with :::

2001:db8::1

The :: represents a sequence of consecutive zeros that have been omitted. However, note that :: can appear at most once in any single IPv6 address.

3. How Does a Private IP Become a Public Exit IP? — NAT

The process works like this: Computer (192.168.1.10) → Router → Public exit IP (123.45.67.89) → Target website.

All traffic leaving the local network is first handed over to the router (which also acts as the default gateway in a home environment). The action of “converting a private IP into a public exit IP” is performed by the router through NAT (Network Address Translation).

Why is this conversion necessary? Because private IP addresses cannot be used directly on the global internet. For example, your computer’s address 192.168.1.10 works fine inside your home, but countless other devices around the world may also be using 192.168.1.10. A website would have no way of knowing which device the response data should be sent back to.

Therefore, when data leaves your home, the router replaces the source IP with your home’s public exit IP. Assuming your public IP is 123.45.67.89:

Before translation:

Source IP: 192.168.1.10
Destination IP: Website server IP

After NAT:

Source IP: 123.45.67.89
Destination IP: Website server IP

The website ultimately sees 123.45.67.89, not 192.168.1.10.

If multiple devices at home share the same public IP, how does the router know whether to forward the returning data to the computer, the phone, or another device?

The answer is that the router keeps a record of each connection’s mapping. It distinguishes devices not only by their private IP but also by port numbers. This more specific technique is called PAT (Port Address Translation), though in everyday use it is generally grouped under the term NAT.

For example, the router might maintain an internal mapping like this:

Device Private Connection Public Connection
Computer 192.168.1.10:50001 123.45.67.89:61001
Phone 192.168.1.11:50002 123.45.67.89:61002
Tablet 192.168.1.12:50003 123.45.67.89:61003

When the website sends data back to 123.45.67.89:61002, the router checks its table and knows the data belongs to the phone.

In addition to the router performing NAT, internet service providers sometimes apply another layer of NAT, known as CGNAT (Carrier-Grade NAT). This happens because IPv4 addresses are in short supply; operators make many households share a small pool of public IPv4 addresses. In such cases, there can be two layers of translation:

Computer’s private IP
→ Home router NAT
→ Carrier internal address
→ Carrier CGNAT
→ Real public exit IP
→ Website

Under this setup, the WAN address (Wide Area Network address — the IP the router uses to connect to the outside world) you see in your router’s admin panel may not be your actual public IP, because the website ultimately sees the exit IP after the carrier’s CGNAT.

CGNAT also brings several practical side effects:

  • It becomes much harder for devices at home to be reached from the public internet (e.g., remote access to a home NAS becomes difficult);
  • Port forwarding rules set on the router may not work as expected;
  • The IP address shown in the router may differ from the IP address reported by “what is my IP” websites.

4. Want to Access Your Home NAS from Outside? — Port Mapping, Intranet Penetration, and Networking

When you're away from home, how do you access files on your home NAS or use local AI services?

Why is it so difficult to access devices at home from the outside? Because most home devices use private IP addresses (e.g., 192.168.1.10), which have no meaning on the public internet. To access them from outside, you need to make your home’s internal devices discoverable and connectable from the public internet. There are two main scenarios — having a public IP or not having one:

Solution 1: You Have a Public IP — Port Mapping + DDNS

If your ISP assigns you a public IP address (not behind CGNAT), you can set up port mapping in your router’s admin panel: forward a specific public port on your router to a specific port on an internal device.

Public Internet: http://Your-Public-IP:8080
→ Router (Port Mapping)
→ Internal Network: 192.168.1.100:3000 (Service on NAS)

However, residential public IPs are usually dynamic and change over time. This is where DDNS (Dynamic DNS) comes in — it keeps a domain name permanently pointed at your current (changing) public IP. You only need to remember the domain; DDNS automatically updates the IP address behind the scenes.

Solution 2: No Public IP — Intranet Penetration (Reverse Tunneling)

Most home broadband connections use CGNAT and do not have a real public IP, making traditional port mapping impossible. In this case, you need intranet penetration: install a client inside your home network that actively connects outbound to a relay server with a public IP, thereby exposing your internal services through this “detour.”

People outside → Public Relay Server (with public IP) → Your Penetration Client at Home
→ NAS Service

Common tools: frp, cpolar, Peanut Shell (Hua Sheng Ke), ngrok. The downside is the extra hop — speed and stability depend on the quality of the relay server.

Solution 3: Networking — Tailscale, ZeroTier

I use Tailscale for automatically generating WeChat public account articles (I’ll share the workflow in future posts).

Networking pulls multiple devices into a “virtual local area network,” allowing them to access each other as if they were on the same local network, regardless of their actual physical locations. It uses P2P direct connections (Peer-to-Peer, where two devices establish a direct data link) with relay fallback (if a direct connection fails, it automatically routes through a relay server). This approach is more flexible than intranet penetration and provides built-in encryption.

Phone (away from home) ⇄ Virtual LAN ⇄ Home NAS

Advantages: No ports need to be exposed to the public internet, offering better security. Your phone, computer, and NAS can all reach each other seamlessly. It’s ideal for “AI Native organizations” that want to connect all their devices and local models into one unified network.

Part Two: What Are Clients, Servers, and Websites?

In the internet, who is actually communicating with whom? The answer is clients and servers.

Client → Request → Server
Client ← Response ← Server

Opening web pages, browsing videos, logging into accounts, posting comments, or calling AI services can all be understood through this model — the software on your side sends a request to a remote server, which processes it and returns the result.

1. What Is a Client?

Client: The party that actively initiates a request. The browser you use, mobile apps, desktop software, mini-programs, game clients, command-line tools, and code scripts can all act as clients.

For example, when you open a website in Chrome, Chrome is the client. When you scroll through X (formerly Twitter) on your phone, the X app is the client. When you use Codex to call GPT, the Codex software is the client. Even a Python script that makes an API request can be considered a client.

There’s a common point of confusion here! The client is not necessarily your computer or phone itself — it is usually a specific piece of software running on that device.

For instance, when you use a Mac to open Chrome and visit a website, the Mac is the device, but Chrome is the client for that interaction. When you open YouTube on your iPhone, the iPhone is the device, but the YouTube app is the client.

The client is primarily responsible for three things: receiving your input, turning that input into network requests, and presenting the server’s response back to you.

For example, when you type a message on a website and click “Send,” what you see is simply clicking a button. Behind the scenes, however, three steps occur — the browser (as the client) sends your input to the server, the server processes it and returns a result, and the browser then displays that result on the page.

2. What is a server?

Server: It can provide various services such as web pages, images, videos, login functionality, search functionality, commenting, payments, file downloads, AI generation results, and more.

For example, when you open YouTube, YouTube’s servers return the page, videos, comments, and recommended content. When you open X (formerly Twitter), X’s servers return your timeline, posts, images, videos, and interaction data. When you open ChatGPT, OpenAI’s servers receive your question, process it, and return an answer.

So at its core, a server is: one or a group of machines dedicated to providing services, along with the programs running on them. It’s important to note that the term “server” has two distinct meanings:

The first meaning is what we commonly refer to as a server — a machine that waits for others to access it and provides services. This includes real hardware such as cloud servers, VPS, or physical servers in a data center. In this sense, it’s essentially a remote computer.

The second meaning refers to specific service programs or systems, such as a Web server, database server, proxy server, or mail server. (We’ll explain proxy servers later.)

3. What is a website?

Many people think a website is just a webpage. In reality, a website is an entire set of online services.

The pages we see are only the surface layer of a website. Behind the scenes, a typical website consists of a frontend, backend, database, servers, and network infrastructure.

The frontend is the part you can see and interact with — pages, buttons, input boxes, images, animations, etc.

The backend is the part running on the server that handles business logic — such as checking whether you’re logged in, verifying membership permissions, processing payments, saving comments, or calling AI models.

The database is a specialized system for storing data — user accounts, article content, comments, orders, chat history, membership status, and so on.

Take an AI tool website as an example: when you see the input box and “Generate” button, that’s the frontend. After you click “Generate,” the backend receives your request, checks your permissions, and may call an AI model. Meanwhile, your account information, history, and remaining credits are typically stored in the database.

Therefore, a website is not a single page, but a complete service system composed of frontend, backend, database, and servers.

A small website can run on a single server, while large platforms are far more complex. Platforms like YouTube, X, TikTok, Taobao, and OpenAI often rely on many different servers working together: web servers, login servers, database servers, image servers, video servers, recommendation systems, risk control systems, caching systems, CDN nodes (more on CDN later), and more.

4. What are requests and responses?

The core interaction between a client and a server is the request and response.

A request is when the client says to the server: “I need something” or “Please do this for me.”

For example, when you open the homepage, the client is requesting the homepage content. When you click login, the client is asking the server to verify your username and password. When you refresh your timeline, the client is requesting the latest content.

A response is the result the server returns after processing the request.

This could be the webpage content, a “login successful” or “login failed” message, video data, AI generation results, or notifications like “no permission” or “request failed.”

5. What makes a server run? — CPU, Memory, Storage, and GPU

What are the main components of a server? Whether you’re choosing a VPS, renting a server, or deciding if your local machine can run an AI model, you’ll encounter these terms. If you’re considering investing in AI hardware, it’s essential to understand them.

CPU (Central Processing Unit): The brain of the server. It executes all computations and logic — handling requests, running programs, and forwarding data. The more cores and the higher the clock speed, the more tasks it can handle simultaneously. For building websites and running backend logic, CPU performance is the primary concern.

GPU (Graphics Processing Unit): Originally designed for graphics rendering in video cards. Because it excels at performing “many simple calculations at the same time” (parallel computing), it has become the go-to hardware for AI training and inference. The mathematical foundation of large language models is massive matrix operations — exactly what GPUs were designed for. When you hear phrases like “running a local model on a 4090” or “buying H100s for training,” they’re referring to GPUs.

Memory (RAM): The server’s “temporary workbench.” Data is loaded into memory before being processed. It’s extremely fast, but all data is lost when power is cut. The more memory you have, the more simultaneous requests and processes the server can handle. If your computer slows down when running multiple Codex tasks, it’s likely due to insufficient memory. You can use the tool “Mole” created by tw93 to diagnose it.

Storage (Hard Disk): The server’s “warehouse,” used for permanently storing data (operating system, files, databases). SSDs (solid-state drives) are fast but expensive, while HDDs (mechanical hard drives) are slower but cheaper. Most modern servers now use SSDs by default.

6. CDN: How to Make Websites Fast for Global Users?

CDN (Content Delivery Network) solves this problem: a website lives in one place, but its users are spread across the world. How do you make the site load quickly for everyone?

The answer is “open stores nearby”: the website copies its content (images, videos, JS files, etc.) to many servers around the globe. When a user visits, they are automatically connected to the server closest to them, instead of always going all the way back to the origin server.

Without CDN: Beijing user → Origin server in the US (slow)
With CDN: Beijing user → Beijing edge node (fast) → If cache miss, then fetch from origin

Key concepts:

  • Edge Nodes: CDN cache servers deployed worldwide, physically close to users;
  • Intelligent Scheduling: Uses DNS and global load balancing to direct users to the nearest node (this directly corresponds to the earlier point about “the same domain resolving to different IPs in different regions”);
  • Caching: Static content (images, videos) is cached at edge nodes. Repeated visits hit the cache directly and don’t need to go back to the origin server.

7. One of the Biggest Threats to Websites: DDoS Attacks

DDoS (Distributed Denial of Service) attack: Attackers use a large number of compromised computers and devices (botnets) to send massive volumes of requests to a target website simultaneously. This overwhelms the server’s bandwidth (the amount of data that can be transmitted per unit of time — covered in detail in Section 4), CPU, and memory, making the site unreachable for legitimate users.

Massive number of bot devices → Flooding the target with requests at the same time → Server bandwidth/CPU/memory exhausted → Normal users cannot access the site

Why does this “burn money”?

  • Many websites are billed based on bandwidth or traffic usage. Being flooded can result in enormous bills;
  • You either have to buy more powerful servers to withstand the attack (more money), purchase high-defense protection services (even more money), or suffer business disruption and revenue loss.

III. What Are Domains, URLs, and DNS?

1. Concepts and Relationships

Concept Plain English
Domain A website’s easy-to-remember name, e.g. openai.com
URL A complete web address, e.g. https://openai.com/chatgpt
DNS The system that translates domain names into IP addresses

IP addresses are what machines actually use, but humans don’t like memorizing them (you wouldn’t want to remember a string of numbers every time you visit a site). That’s why the internet introduced domain names.

A domain is a human-friendly name given to a server. You only need to remember openai.com; you don’t need to remember the server’s IP address behind it. However, computers ultimately communicate using IP addresses, so a “translation system” is needed to convert openai.com into the server’s IP. That translation system is DNS.

Relationship: Domain → DNS Query → IP Address → Connect to Server

2. What Is a Domain Name?

A domain name is the name of a website on the internet. It replaces hard-to-remember IP addresses. However, a domain is not the same as a URL, and domains have their own hierarchical structure.

Take www.example.com as an example. It can be broken down into three levels:

www.example.com

│ │ │
Subdomain Second-level Top-level

.com is the top-level domain (TLD). Common ones include .net, .org, .cn, .ai, .io, etc.
example is the second-level domain, which is usually the part you actually register and own.
www is a subdomain. Many websites use www, while others don’t.

Additionally, domains and IP addresses do not have a strict one-to-one relationship. A single domain can correspond to multiple IPs — this is very common.

Large websites rarely run on just one server. A single domain may resolve to multiple IP addresses to enable load balancing, disaster recovery, CDN acceleration, and routing users to the nearest server.

For example, when you access a website from the United States, DNS may return an IP address of a server near the US. When you access it from Singapore, DNS may return an IP address of a server in Singapore. Therefore, the same domain can resolve to different IP addresses depending on your location, network, and even the time of access.

Conversely, one IP address can also correspond to multiple domains. A single server or public IP may host multiple websites. For instance, a.com, b.com, and c.com may all point to the same server IP. When the server receives a request, it looks at the domain name included in the request to determine which website the user wants to visit.

So the relationship between domains and IPs is not strictly one-to-one: one domain can resolve to multiple IPs, and one IP can serve multiple domains.

3. What is a URL?

A URL is what we commonly refer to as a “complete web address.” A domain name is only one part of a URL. A URL is more complete than a domain because it not only tells you which website you want to visit, but also specifies the communication protocol, which page to access, and any additional parameters. For example:

https://www.example.com/articles?id=123#comments

Component Example Meaning
Protocol https:// The communication method to use
Domain www.example.com Which website to visit
Path /articles Which page within the website to access
Parameters ?id=123 Additional information sent to the server
Anchor #comments A specific location within the page

4. What is DNS?

DNS stands for Domain Name System, commonly referred to in Chinese as “Domain Name System”.

Its core function is to translate domain names into IP addresses. Humans use easy-to-remember domain names, but network communication ultimately relies on IP addresses. For example, when you enter youtube.com, the browser must first find out which IP address youtube.com corresponds to. This lookup process is called DNS resolution.

⚠️ Important note: Domain name → IP is only one of the functions of the DNS database, not its entirety. Therefore, DNS should not be equated solely with “resolving domain names to IP addresses.” Later in the DNS Records section, we’ll cover types that have nothing to do with domain-to-IP mapping.

The general process looks like this:

You enter youtube.com
↓ The browser asks DNS: “What is the IP for youtube.com?”
↓ DNS returns an IP address
↓ The browser connects to the server at that IP

To truly understand the complete, real-world DNS query flow, you need to understand the following key concepts:

1) What is caching?

Caching is the temporary storage of previously queried results so they can be reused immediately next time.

For example, after you visit www.example.com, the system has already resolved it to a specific IP. If you visit the site again shortly afterward, the browser or operating system may directly use the cached result instead of performing a full lookup again.

This provides two major benefits: faster access and reduced load on the DNS infrastructure.

Browser cache refers to the DNS results temporarily stored by the browser itself.

If the browser doesn’t have the record, it usually asks the operating system (Windows, macOS, iOS, Android, etc.). The OS may also cache DNS results.

For instance, if you previously visited the same domain using another app (not Chrome), the OS may have already cached the resolution. Chrome can then retrieve the result directly from the system cache.

However, caches are not permanent. Every DNS record (explained later) usually comes with a TTL (Time To Live), which indicates how long the result can be cached. If the TTL is 300 seconds, the result can be cached for about 5 minutes. After it expires, the system must query again.

This is also why changes to domain records don’t take effect worldwide instantly — many systems are still using the old cached value until the TTL expires.

2) What are Local DNS and Recursive DNS?

If neither the browser nor the operating system has the answer, the device must query a DNS server.

This server is commonly called a Local DNS or Recursive DNS Resolver.

It may be automatically provided by your ISP (via your router), or it could be a public DNS service you manually configured for better speed and reliability, such as Google DNS or Cloudflare DNS.

For example, when you connect to your home Wi-Fi, the router or ISP typically tells your device: “When resolving domain names, ask this DNS server.”

Recursive DNS means that when you ask it for a domain, it takes full responsibility for finding the answer — querying other servers as needed — and eventually returns the final IP address to you.

For example, you ask your local DNS: “What is the IP for www.example.com?”

  • If it has the answer in its own cache, it replies immediately.
  • If not, it will recursively query the Root DNS, Top-Level Domain (TLD) DNS, and Authoritative DNS servers (explained below). This process is called a recursive query.

3) Why switch to Public DNS services like Google DNS or Cloudflare DNS?

By default, your device uses DNS servers automatically assigned by your ISP (also called ISP DNS or Operator DNS). It’s “good enough,” but far from optimal.

Public DNS refers to free DNS services openly provided by companies or organizations. Examples include Google’s 8.8.8.8 and Cloudflare’s 1.1.1.1. Anyone can manually configure their device to use them.

Switching to public DNS offers several key advantages:

First, faster and more reliable.

ISP DNS servers are often shared by millions of users. During peak hours, they can become slow or even fail completely (you may see “webpages won’t load, but WeChat still works”).

In contrast, Google and Cloudflare use anycast technology and have deployed numerous nodes worldwide. Your queries are automatically routed to the nearest node, resulting in faster response times and higher availability.

Second, it prevents ISP interference.

ISPs frequently tamper with DNS query results. Common practices include:

  • 404 hijacking: When you enter a non-existent domain, instead of showing a proper “site not found” error, the ISP redirects you to its own advertising page.
  • Result tampering: Changing the resolved IP of certain domains to ones the ISP wants you to visit.

DNS Pollution: Returns incorrect IP addresses for certain overseas domains.

By switching to public DNS, you bypass these manipulations performed by your ISP’s DNS servers.

Third, Privacy.

Every DNS query is essentially a record of “which websites you intend to visit.” When using an ISP’s DNS, all these records are in the hands of your ISP.

In contrast, Google and Cloudflare both have transparent privacy policies. Cloudflare even promises to purge its logs within 24 hours.

Fourth, Greater Security.

Public DNS services usually support DNSSEC (which verifies that the resolution results have not been tampered with). Cloudflare also offers filtered addresses — for example, 1.1.1.2 automatically blocks malware, and 1.1.1.3 additionally blocks adult content.

Fifth, Solving Real-World Problems.

Pages that won’t load, domain resolution failures, and frequent website redirects can often be fixed immediately by switching to a public DNS.

Sixth, Working with Proxies.

When using a proxy, if DNS queries still go through your local ISP, two issues arise: the queries may still be poisoned, and your list of “which overseas sites you’re visiting” is exposed to the ISP.

Features in proxy software such as Fake-IP and remote DNS are essentially designed to solve this problem (covered in detail in the previous Clash Verge Tutorial under DNS settings).

Here are some commonly used public DNS addresses to remember:

Provider IPv4 Addresses Key Features
Google DNS 8.8.8.8 / 8.8.4.4 Globally deployed, fast
Cloudflare 1.1.1.1 / 1.0.0.1 Strong privacy, offers filtered versions
Alibaba DNS 223.5.5.5 / 223.6.6.6 Fast access within China
DNSPod 119.29.29.29 Fast access within China

4) What are Root DNS, TLD DNS, and Authoritative DNS?

When a recursive DNS server doesn’t know the answer itself, it starts querying from the very top of the DNS hierarchy — the Root DNS.

Root DNS servers do not directly return the final IP address for www.example.com. They act like a master index, telling the recursive resolver only where to look next.

For example, when resolving www.example.com, the Root DNS looks at the top-level domain .com and tells the recursive DNS: “To resolve a .com domain, go ask the TLD DNS responsible for .com.”

The DNS servers responsible for top-level domains are called Top-Level Domain DNS, or TLD DNS for short.

Continuing the example, the recursive DNS then asks the .com TLD DNS. The .com TLD DNS usually won’t give the final IP either. Instead, it replies: “The authoritative DNS for www.example.com is located at X. Ask that server.”

The Authoritative DNS is where the actual records for the domain are stored — it may contain the IPv4 address, IPv6 address, or other records for www.example.com.

So the recursive DNS finally asks the authoritative DNS: “What IP address does www.example.com actually point to?” The authoritative server returns the final answer. The recursive DNS then passes this answer back to your device. Only after your browser receives the correct IP can it establish a connection to the server.

5. What Are DNS Records?

DNS records are the final “answers” that a DNS query looks for — they are the lookup table that tells the world where a domain name should resolve to.

Where a domain name points is not decided out of thin air; it is determined by the DNS records you configure. After you purchase a domain, you can set up resolution records at your domain registrar or DNS provider. The most common record types are:

Record Type Purpose In Simple Terms When You Need It
A record Points a domain to an IPv4 address Tells the world: “This domain’s server IP is this one.” When people say “domain resolves to IP,” they’re referring to this. Most common when building websites — lets example.com open your server
AAAA record Points a domain to an IPv6 address Same as A record, but uses an IPv6 address When your server uses an IPv6 address
CNAME record Points one domain to another domain Makes one domain “equal” to another. Instead of writing an IP, you write “I am equal to xxx.com” Used to make www.example.com and example.com serve the same website
MX record Configures mail servers Sets a “reception desk” for the domain: tells the world which mail server should receive emails sent to your domain. Note: it points to another mail server, not an IP Used for corporate email — sending and receiving with @yourdomain
TXT record Stores verification information, such as domain ownership or email security Attaches an “ID card” to your domain so external platforms can read it and verify “this domain really belongs to me” When a platform asks you to verify domain ownership, e.g. Google Search Console, WeChat, or email providers

Taking my personal website yichen.homes as an example, the part I’ve highlighted in red shows the DNS record types.

4. What Are Protocols, HTTP/HTTPS, and Ports?

1. What Is a Protocol?

A protocol is a set of rules that both communicating parties agree to follow.

When two people talk, they need to use the same language — if one speaks Chinese and the other speaks French, they can’t communicate. The same applies to network communication. The client and server cannot just send random data; they must agree in advance on how requests are formatted, how responses are returned, how errors are signaled, and how data is transmitted. This agreed-upon set of rules is called a protocol.

You use protocols every day. For example, when you open a browser to visit a website, you use HTTP or HTTPS. When you remotely log into a server, you use SSH. Sending and receiving emails also relies on their own specific mail protocols.

Without protocols, even if the client finds the server, it wouldn’t know how to ask for a webpage, and the server wouldn’t know how to send the result back to you.

2. What Is HTTP?

HTTP stands for HyperText Transfer Protocol. It is one of the most important protocols in the web world.

In plain terms, HTTP is the rulebook for transferring web content between browsers and website servers. When you open a webpage, the browser sends a request to the server following HTTP rules, and the server returns a response using the same rules. The most basic model is:

Browser → HTTP Request → Web Server

Browser ← HTTP Response ← Web Server

So at its core, HTTP has just two actions: request and response. A request is the client telling the server “this is what I want.” A response is the server telling the client “here is the result.”

An HTTP request may contain the path you want to access, browser information, language preferences, login status, etc. An HTTP response contains the webpage content, status codes, and other information.

Status codes are how the server tells you the result of your request. You’ve probably seen 404 (page not found), 403 (access denied), or 500 (internal server error).

3. What is HTTPS?

HTTPS can be understood as the secure version of HTTP.

Plain HTTP does not encrypt data. If someone is eavesdropping on the network between you and the website, they can theoretically see exactly what content is being transmitted. HTTPS adds a security layer on top of HTTP (primarily TLS, which handles encryption, identity verification, and tamper protection—more on TLS later). This ensures that even if a middleman intercepts the data, they cannot read its contents.

When you visit an HTTPS website, the browser first establishes a connection with the server and then performs a TLS handshake. Only after the handshake is complete will both sides transmit HTTP content through this encrypted channel.

Compared with HTTP, HTTPS primarily does three additional things:

  • Encryption: The transmitted content is encrypted, so even if intercepted, it remains unreadable.
  • Tamper Protection: Data is difficult to secretly modify during transmission.
  • Identity Verification: The browser uses the website’s certificate to confirm that you are indeed visiting the site it claims to be.

That’s why logging into accounts, making payments, sending messages, accessing email, or using cloud storage almost always uses HTTPS nowadays.

However, HTTPS does not mean complete invisibility. It only protects the content transmitted between you and the website. Your exit IP address, access time, which server you connected to, and other network-layer information can still be visible to relevant nodes.

In the future, when you see a URL starting with http://, it’s regular HTTP. When you see https://, it means the connection is protected by encryption.

4. What is a Port?

A single server often runs many different services at the same time: web services, remote login, databases, email, and more. An IP address can only help you locate the server, but it cannot tell you which specific service you want to access.

This is where ports come in—they act as numbered entry points for different services on the same machine. You can think of a server as a building: the IP address is the building’s address, and the port is the room number inside. Knowing the building address alone is not enough; you also need to know which room to go to.

A port is simply a number. A service program occupies a specific port and waits for connections—this is called “listening” on that port. Here are some common ports worth knowing:

Port Common Use
80 HTTP web services
443 HTTPS web services
22 SSH remote server login
3306 MySQL database
5432 PostgreSQL database
3000 / 5173 / 8080 Common ports for local development and testing

In addition, common protocols have default ports: HTTP defaults to 80, and HTTPS defaults to 443.

That’s why when you visit a website without specifying a port, the browser automatically connects to port 443. Seeing localhost:3000 means the browser is accessing a service running on port 3000 on your own computer. If a service is not using its default port, you must include it in the URL, for example: https://example.com:8443.

5. TCP and UDP: How Is Data Transported?

Earlier in the process of opening a website, we mentioned “establishing a TCP connection.” Let’s dive deeper into that here.

Data traveling across the network is not sent as one big chunk. Instead, it is broken into many small “packets.” But having packets alone is not enough—who ensures they don’t get lost or arrive out of order? That’s the job of transport layer protocols. The two most common are TCP and UDP.

TCP (Reliable): Before sending data, it performs a “three-way handshake” to confirm both sides are online. After sending each packet, it requires the receiver to acknowledge receipt. If no acknowledgment is received, the packet is retransmitted. TCP also guarantees the correct order of packets. Web pages, file transfers, and API calls all use TCP because losing even a single packet would make the content incomplete.

UDP (Fast): It does not confirm receipt or retransmit lost packets—it simply sends and forgets. This makes it faster with lower latency, but data may be lost. It is suitable for voice calls, video streaming, and online games.

6. The Three Key Elements of Network Quality: Bandwidth, Latency, and Packet Loss

To judge whether a network or node is good, we look at these three metrics:

Bandwidth: The amount of data that can be transmitted per unit of time, commonly measured in Mbps (megabits per second). Note the difference between downlink and uplink: downloading uses downlink, while uploading (such as sending videos or running video generation) uses uplink. Home broadband uplink speeds are usually much lower than downlink.

Latency: The time it takes for a data packet to travel from sender to receiver and back (round-trip time), measured in milliseconds (ms). It is commonly tested with ping. High latency = slow response. This is especially important for AI interactions and real-time applications—for example, how long it takes for ChatGPT to reply after you send a prompt.

Packet Loss: The percentage of sent packets that fail to reach their destination. High packet loss causes stuttering, retransmissions, and disconnections. Many instances of lag on international routes during peak hours are caused by packet loss.

7. What Actually Happens When You Open a Website?

Let’s tie everything together. You type https://example.com/articles into your browser and press Enter. On the surface, it just looks like “opening a webpage,” but behind the scenes, a whole series of steps takes place:

Enter URL

→ Parse the URL: extract the protocol (https), domain (example.com), and path (/articles)

→ DNS lookup: resolve example.com to a server IP address

→ Determine the port: HTTPS uses port 443 by default

→ Establish a TCP connection

→ Perform TLS handshake to create an encrypted channel

→ Send an HTTP request: tell the server you want to access /articles

→ Server processes the request and returns a response

→ Browser renders the page

In one sentence: Domain → DNS resolves it to an IP → Locate the server → Find the service through the port → Communicate according to the protocol.

8. Website Protocols vs Proxy Protocols

Throughout this section, we’ve been talking about “website protocols” — the rules used between the browser and the target website, such as HTTP and HTTPS. However, the word “protocol” is also used in another easily confused context: proxy protocols.

A proxy protocol is the set of rules used between your application and the proxy server. Common examples include HTTP proxies and SOCKS5 proxies. They can exist at the same time. For example, when you access an HTTPS website through a SOCKS5 proxy:

Browser

→ Connects to the proxy server using SOCKS5 rules

→ The proxy server then connects to the HTTPS website

Here, SOCKS5 is the proxy rule between you and the proxy server, while HTTPS is the web communication protocol between the browser and the target website. Therefore, SOCKS5 and HTTPS are not mutually exclusive — they protect different segments of the journey. The specific differences between these two types of proxy protocols will be covered in Part Six: “Common Forms of Proxies.”

Part Five: What Information Can a Website Actually See About You?

Once a request from the client reaches the server, what does the website actually know? Many people think a website can only see your IP address, but in reality, it receives a whole set of information: network information + browser and device environment + cookies and account status + access behavior.

Friends who want to use Claude should pay close attention and thoroughly understand the underlying principles here, because Anthropic usually doesn’t judge you based on just one factor — it combines all of this information for analysis.

1. The Website Can First See Your Exit IP and Which Network It Belongs To

When you access a website directly, the server can usually see your public exit IP. If you use a proxy, the website typically sees the proxy server’s IP. If you use a VPN, it sees the VPN server’s IP. If you access through a VPS, it sees the VPS’s IP.

After obtaining the IP, the website can also query its associated attributes, such as country, region, city, ISP, network type, and whether there are any records of suspicious or abnormal usage.

However, IP geolocation is not GPS. Just because an IP shows up in Los Angeles doesn’t mean the user is physically sitting there — it may simply be the location of the ISP or server’s exit point.

Websites don’t just look at the IP address itself; they also look at which network the IP belongs to.

This brings us to an important concept: ASN (Autonomous System Number), which can be understood as an ID number for a large network organization.

The internet is not managed by a single company. It is formed by the interconnection of networks from many ISPs, cloud providers, universities, enterprises, and data centers. Each large independent network usually has its own ASN.

So when a platform looks up an IP, it may learn which network organization it belongs to. It may also determine whether it looks more like residential broadband, mobile network, or a data center. It may even know whether this network is frequently used by proxies, crawlers, or automated programs.

2. What Can a Website See from the Request?

When a browser sends an HTTP request to a website, it attaches various pieces of information to help the server understand your environment and needs. This information is usually placed in the HTTP request headers. A simplified request might look like this:

GET /articles HTTP/1.1

Host: example.com

User-Agent: Chrome

Accept-Language: zh-CN

Cookie: session=xxxxx

From this, the website may learn:

  • The general type of browser and operating system (Chrome, Safari, Firefox; Windows, macOS, Android, or iOS);
  • Language preferences (Simplified Chinese, English, Japanese);
  • Referring page (whether you came from a Google search or clicked a link from another site);
  • Whether you are carrying a login cookie.

However, modern browsers reduce or obscure some of this information to protect privacy, so the website may not receive the exact device model or system version.

English Translation:

3. How Do Cookies and Local Storage Identify You?

Cookies are small pieces of data that websites save in your browser. The first time you visit a site, it may assign you a random ID: “Next time you come back, bring this ID with you.”

On your next visit, the browser automatically sends the Cookie along with the request. This way, even if your IP address changes, the website can still recognize that it’s the same browser.

Similarly, data stored in Local Storage and other browser storage mechanisms does not disappear just because you switch IP addresses.

4. Browser Fingerprinting: What Else Can Websites Learn About You?

JavaScript running on web pages can read a wide range of information about your browser environment: screen resolution and window size, system time zone, browser language, device memory, graphics card rendering characteristics, partial information about installed fonts, and more.

Taken individually, none of these signals can reliably identify you—millions of people use a 1920×1080 screen, and millions use Chrome.

But when many of these features are combined, they can form a fairly unique environmental signature. This is what we call browser fingerprinting.

For example, a fingerprint might look like: U.S. exit IP + China time zone + Simplified Chinese as the preferred browser language + macOS + specific screen resolution + specific GPU rendering result + previously saved data from a certain website.

Platforms evaluate whether these signals are natural, stable, and whether they show abnormal changes over time.

In addition to browser fingerprinting, there are two other major identification signals:

TLS Fingerprinting: When connecting to an HTTPS website, the browser declares which encryption algorithms, TLS versions, and extensions it supports during the handshake. Different browsers, scripts, and crawler tools “speak” slightly differently, allowing websites to determine whether the request truly looks like it came from a normal Chrome browser.

WebRTC Leak: WebRTC is a technology built into browsers for audio/video calls and peer-to-peer communication. In certain configurations, it can expose additional network address information—this is commonly known as “WebRTC leak.”

However, modern browsers have added privacy protections. For example, local network addresses are sometimes hidden or replaced with random names. What can actually be seen depends on the browser, operating system, permissions, and network configuration.

5. Can Websites Tell Which DNS You Are Using?

Under normal circumstances, the HTTP or HTTPS requests a website receives do not explicitly state “this user is using which DNS server.”

Therefore, a website usually cannot determine from a single ordinary page request whether your computer is configured to use your ISP’s DNS, Google DNS, Cloudflare DNS, or any other resolver.

However, websites can infer this indirectly. Suppose a website makes your browser visit a specially generated temporary domain, such as abc123.test.example.com.

Since this domain has never been queried before, it typically won’t be cached in your browser, operating system, or recursive DNS resolver. Your device must query the recursive DNS server.

That recursive DNS server will then ask the domain’s authoritative DNS. If the authoritative DNS is controlled by the website, it can see in its logs: “Which recursive DNS server queried this special domain?”

It’s important to note that the authoritative DNS usually sees the IP address of the recursive DNS server, not necessarily the user’s real public IP.

For example, if you use your ISP’s recursive DNS, the authoritative server sees the ISP’s DNS server IP. If you use a public DNS service, it sees one of that service’s resolver nodes.

6. How Do Platforms Combine All This Information for Risk Control?

Mature platforms rarely ban or flag users based on a single signal. Instead, they combine all the information above. Common signals are typically grouped into four categories:

  • Network Environment: Exit IP, country and city, ASN, ISP, IP type, proxy/VPN characteristics, historical abuse records, connection speed, and frequency of network changes.

  • Device & Browser Environment: Browser, operating system, time zone, language, screen size, fonts, graphics rendering, TLS fingerprint, and other browser characteristics.

  • Account Status: Cookies, login tokens, account registration region, bound phone number, payment methods, historically used devices, and previous login locations.

  • Behavioral Characteristics: Login time, click speed, access frequency, operation sequence, content preferences, whether large numbers of requests are made in a short time, and whether the behavior resembles that of a real human.

VI. What Are Proxies, VPNs, and VPSs?

When you visit a website normally, data travels from your device, through your router and ISP network, and finally reaches the target website.

But what happens to the network path if you insert another server in the middle instead of letting your device connect directly?

Before we begin, let’s define two terms that will appear frequently:

Network Traffic: The total data sent and received by a device over the network, including web requests, images, videos, DNS queries, etc.

Forwarding / Proxying: Data is not sent directly to the target website, but is first handed to an intermediate server, which then forwards it onward.

1. What is a Proxy?

The term “proxy” here refers to a proxy service that accesses external websites on behalf of the user.

It works like this: instead of your device sending requests directly to the target website, it first sends the request to a proxy server. The proxy server then visits the website for you and forwards the returned content back to you. From the target website’s perspective, it is the proxy server that is actually connecting to it. Therefore, the website usually sees the proxy server’s exit IP, rather than the exit IP of your home broadband or mobile network (this is exactly what was explained in Part 5: “The website can first see your exit IP”).

A proxy typically only affects the specific programs you designate (such as your browser). It does not route all traffic from your entire computer through the proxy. Which programs use the proxy and how traffic is split will be covered in the section “Common Forms of Proxies” below. Detailed setup instructions can be found in the previous article Clash Verge Tutorial.

2. What is a VPN?

VPN stands for Virtual Private Network.

Its original purpose was to allow a device outside an internal network to securely access that network over the internet—for example, enabling employees to connect to their company’s internal systems from home. The consumer-grade VPNs commonly discussed today usually mean that your device first connects to a VPN server, and then all (or part of) your internet traffic is routed through that server to access the internet.

Before understanding VPNs, it’s important to understand the concept of a “tunnel.” This tunnel is not a physical pipe, but a logical channel on the network. Your device encapsulates and encrypts the data it intends to send, then transmits it to the VPN server. Intermediate networks can only see that your device is communicating with the VPN server; they cannot easily read the actual content inside the tunnel.

The typical path is: Your device → Encrypted VPN tunnel → VPN server → Target website. After receiving the data, the VPN server forwards it to the target website, so the website usually sees the VPN server’s IP address.

There are two common ways VPNs operate. The first is full-tunnel mode, where most or all of your device’s network traffic is routed through the VPN. The second is split-tunnel mode, where only traffic to specific websites, applications, or networks goes through the VPN, while other traffic connects directly. This split-tunnel approach is also known as traffic splitting.

One important reminder: VPN encryption only applies to the segment between “your device → VPN server.” Your ISP can usually see that you are connected to a particular VPN server, but cannot easily see the specific content inside the tunnel. The VPN provider may know which websites you visit. Meanwhile, the target website not only sees the VPN server’s exit IP, but can still identify you through cookies, accounts, and browser fingerprinting.

Therefore, using a VPN does not equal complete anonymity. Its main functions are to change your network path and to protect the communication between your device and the VPN server.

3. What is a VPS?

VPS stands for Virtual Private Server. In simple terms, a VPS is a remote computer that you rent.

Cloud providers use virtualization technology to divide a physical server into multiple relatively independent virtual servers. Each virtual server has its own operating system, CPU, memory, disk space, and public IP address.

You can remotely log into this VPS to deploy websites, run programs, or store files.

A VPS itself is neither a proxy nor a VPN—it is simply a remote computer you can use freely. However, you can install proxy software or VPN server software on it to turn it into your own exit server (installation instructions are available in the previous article Clash Verge Tutorial).

4. How to Choose Between Commercial VPN, Self-Hosted VPN on VPS, and Self-Hosted Proxy on VPS?

In real-world use, we usually face three main options: buying a commercial VPN, renting a VPS to self-host a VPN, or renting a VPS to self-host a proxy. All three can change the exit IP that target websites see, but they differ significantly in ease of use, maintenance cost, and ideal use cases.

First, let’s clear up a common point of confusion: Both “commercial VPN” and “self-hosted VPN” contain the word “VPN,” but “commercial” refers to a service operated and billed by a provider — it is not a technical distinction. Self-hosted VPN also uses VPN tunneling technology, but it is not a commercial VPN service. You rent the server yourself, set up the software yourself, and only pay the VPS monthly rental fee — you are not buying a “VPN service” from any provider.

1) Buying a Commercial VPN

The service provider manages the servers, client software, and network configuration. You simply install the app, log in with your account, select a region, and connect.

The biggest advantage is convenience. The provider handles server maintenance, software updates, and troubleshooting. You don’t need to know Linux, server configuration, or firewall management. They usually offer servers in many countries and regions, making it ideal for people who frequently switch locations and use the service across both phones and computers.

The main drawbacks are sharing and privacy. Commercial VPN servers are typically shared by many users. The same exit IP may be used simultaneously by a large number of people. If any of them engage in suspicious activity, that IP is more likely to trigger CAPTCHAs, throttling, or website blocks.

Additionally, since the VPN provider sits at your network exit point, they can still see which servers you connect to and how much traffic you generate (a privacy concern).

2) Self-Hosted VPN on VPS

You first rent a remote server, then install VPN server software on it. Once your devices connect, all their internet traffic routes through that server.

Compared with commercial VPNs, the server is used primarily by you. The exit IP is relatively stable and is not frequently shared with large numbers of strangers. This makes it suitable for long-term use of the same region and fixed exit IP.

The advantage is greater control: you decide the server location, VPN software, which devices can connect, and which traffic goes through the VPN. The downside is that you must maintain everything yourself — installing software, managing keys, configuring firewalls, monitoring system updates, etc. If the server goes down, the IP gets blocked, or connection quality degrades, you have to fix it yourself.

Important note: VPS IPs usually belong to data centers or cloud providers. They are not residential IPs and are not necessarily more trusted by websites than commercial VPN IPs.

3) Self-Hosted Proxy on VPS

You also rent a server first, but instead of running VPN software, you run proxy software.

The biggest difference from a self-hosted VPN is how traffic is controlled. A self-hosted VPN typically handles traffic at the device network level, while a self-hosted proxy usually lets individual applications decide whether to use the proxy. For example, you can route only Chrome through the proxy while other software continues using your home network.

This approach is more flexible and is well-suited for software development, API calls, web scraping, testing, or situations where you only need a specific browser to use a fixed exit IP.

However, it is also more prone to incomplete configuration issues — for instance, the browser uses the proxy while other apps do not, or the webpage goes through the proxy but some DNS queries still use the local network.

4) Self-Hosted Proxy vs Self-Hosted VPN on VPS: What’s the Real Difference in Principle?

If you’ve read my previous article Clash Verge From Zero to One: Complete Beginner Tutorial, the following terms should be familiar: node, subscription, configuration scheme, system proxy, TUN mode, rule/global/direct mode. In this section, I’ll explain the difference between “self-hosted proxy” and “self-hosted VPN” using Clash Verge as context. (I personally use a self-hosted proxy.)

Remember this one-sentence distinction: VPN builds a “tunnel”; proxies perform “forwarding.”

① How Self-Hosted VPN on VPS Works: Digging an Encrypted Tunnel

You install VPN server software on the VPS (commonly WireGuard or OpenVPN). Your device first establishes a “tunnel” with the VPS. All outgoing traffic from the device is encapsulated, encrypted, and sent through the tunnel to the VPS. The VPS then decrypts it and forwards it to the destination website:

Your device (network card level — all traffic)
→ Encrypted Tunnel
→ VPN service on the VPS
→ Decrypt & Forward
→ Target Website

It has three key characteristics:

First, it takes over at the network interface level. VPN creates a virtual network adapter on your device and takes over traffic at the operating system level. As a result, almost all applications and all traffic go through the tunnel, regardless of whether the software natively supports proxies.

Second, the entire path from device to VPS is encrypted. VPN is inherently an encrypted tunnel. Not just browser traffic — data from all apps is encrypted and encapsulated inside the tunnel. This capability is built-in and requires no extra configuration.

Third, the tunnel signature is very obvious. Protocols like WireGuard and OpenVPN have fixed handshake methods and packet patterns. The GFW (Great Firewall) can actively probe and recognize “there is a VPN tunnel here” and then apply targeted interference.

② How Self-Hosted Proxy on VPS Works: Forwarding Requests via the VPS

You install proxy software on the VPS (such as VLESS, Trojan, Shadowsocks, etc.). Your device uses proxy client software (e.g. Clash Verge) to forward requests to the VPS, which then accesses the website on your behalf:

Application (Chrome, App)

→ Proxy Software (Clash Verge)

→ Proxy Service on VPS

→ Target Website

The key differences from VPN are three points:

First, control at the application/rule level. Whether traffic goes through the proxy is determined by Clash Verge’s rules — domestic websites connect directly, foreign websites go through the proxy, and ad domains are blocked. This is exactly what the “Rule Mode” diagram in the previous tutorial was doing. Domestic speeds remain unaffected, something VPNs cannot do by default (VPNs typically route the entire system through the tunnel).

Here is a screenshot of the “Rules” page from my previous tutorial. You can see that each rule decides whether traffic should go DIRECT, through the PROXY, or be REJECTed:

Second, more authentic website access. VLESS itself is a lightweight forwarding protocol. Its real strength lies in combining with camouflage technologies like REALITY: your traffic appears to be a normal visit to a real website (e.g. aws.amazon.com). Both the TLS handshake and packet characteristics are nearly identical to genuine access. When the GFW performs active probing, it only sees a “normal HTTPS request” and cannot identify it as proxy traffic.

Third, whether encryption is used depends on the protocol. VPN tunnels are encrypted by design (as explained in ① above), whereas proxies are “not necessarily encrypted.” Plain SOCKS5 and HTTP proxies forward traffic in plaintext. Only protocols like VLESS+REALITY, Trojan, and Shadowsocks provide both encryption and camouflage. Therefore, both the claims “proxies are unencrypted” and “VPNs are unencrypted” are misconceptions — it always depends on the specific protocol.

After rules decide “whether to use a proxy,” which specific exit node to use is determined by proxy groups such as PROXY. This is the proxy group interface from my previous tutorial. The currently selected node is DMIT-VPS:

③ Why is proxy (VLESS+REALITY) more suitable than VPN for bypassing internet censorship?

The biggest barrier to “scientific internet access” (bypassing the Great Firewall) is the GFW, which detects based on characteristics, not encryption:

  • The content of the websites you visit is already protected by HTTPS encryption, so adding another layer of tunnel encryption between your device and the VPS is not the core value for bypassing censorship.
  • What truly determines stability is whether “this traffic can be recognized as proxy/VPN traffic.”

REALITY’s camouflage technology was specifically designed to solve this problem. It makes proxy traffic indistinguishable from real website traffic. In contrast, VPN tunnel protocols have very distinctive characteristics and are more easily detected by active probing.

Combined with the proxy’s traffic-splitting capability (direct connection for domestic sites, proxy for international ones), the daily user experience is also far more comfortable than routing the entire system through a VPN.

That’s why, whether using commercial “airport” services or self-hosted solutions, the mainstream approach for bypassing the Great Firewall today is proxy protocols such as VLESS/REALITY and Trojan, rather than self-hosted VPNs. The DMIT-Reality node you saw in my previous tutorial uses exactly this solution:

So where does VPN shine? In full-system takeover and networking: for example, ensuring all apps’ traffic is encrypted (including obscure protocols that don’t go through proxies), securely accessing company internal networks from remote locations, or connecting your home NAS and phone to the same virtual network.

These are needs beyond bypassing censorship. VPNs are better suited for them, but their distinctive tunnel signatures make them less ideal as the primary method for crossing the wall.

5. Common Forms of Proxies: HTTP Proxy and SOCKS5

“Proxy” is not a single thing. In practice, you will encounter several specific forms of proxies.

HTTP Proxy is a proxy that receives and forwards requests specifically according to HTTP rules.

When you visit a regular HTTP website, the browser hands the page request to the proxy server, which then requests the target website on your behalf. When visiting an HTTPS website, the browser first asks the proxy to establish a relay channel to the target site’s port 443 (this process is called CONNECT). Once the channel is established, the browser completes the TLS handshake and HTTPS communication inside that channel.

SOCKS5 is a more general proxy protocol than HTTP proxy. It is not limited to browsers. It simply establishes connections and forwards data according to the target address and port you provide. Therefore, chat apps, download tools, and development programs can all use it.

The application tells the SOCKS5 proxy “which target address and port I want to connect to.” SOCKS5 is responsible for establishing that connection and forwarding the data as-is. It commonly supports TCP connections and can also forward UDP data (support depends on the proxy server implementation).

In local proxy software, SOCKS5 usually appears as a localhost endpoint, such as 127.0.0.1:1080. The proxy software opens port 1080 on your computer. Applications send requests to it, and it then forwards them to the remote node.

SOCKS5 itself does not provide encryption — it only forwards data and does not encrypt it. Security depends on whether the destination site uses HTTPS. If you visit a plain HTTP website, the SOCKS5 proxy in the middle can see the plaintext content.

6. Explicit Proxy vs. Transparent Proxy

Explicit Proxy: The application is explicitly aware that it is using a proxy. For example, when you manually enter the proxy address, port, username, and password in your browser, the browser actively connects to the proxy server according to the proxy protocol.

Transparent Proxy: The application itself has no proxy configured, but its traffic is automatically forwarded to a proxy service by some device or software.

Examples include a company gateway that centrally handles traffic from all internal devices, or the TUN mode of a local proxy application that captures traffic through a virtual network interface. To the application, it may appear to be directly accessing a website, while in reality its traffic has already been intercepted and routed through a proxy.

7. Why Do Some Applications Bypass the Proxy in Practice?

As mentioned in Layer 4 at the beginning, tools for scraping WeChat Official Accounts or Video Channels often require proxy configuration. However, many people encounter the issue where “the browser goes through the proxy, but a certain tool still connects directly.” The root causes can usually be found in the following points:

  • The tool does not read the system proxy settings, and TUN mode is not enabled — its traffic never enters the proxy software at all.
  • TUN mode is enabled, but the target is excluded by routing rules.
  • IPv4 traffic goes through the proxy, but IPv6 does not; the website sees the IPv6 exit IP.
  • The request reaches the proxy software but matches a DIRECT rule (e.g., domestic sites set to direct connection).
  • Rule order is incorrect — a broader rule matches first.
  • The tool retains old connections established before the proxy was switched; restarting the tool is required for the new settings to take effect.

VII. What Are Datacenter IP, Residential IP, ISP IP, and Mobile IP?

Even if they are all “US IPs,” websites may evaluate them completely differently. Some IPs come from AWS, Google Cloud, or VPS datacenters; some come from regular home broadband; some originate from mobile 4G/5G networks; and others are marketing terms used by proxy providers.

First, remember the most important classification relationships:

By Network Origin: Datacenter IP / Residential IP / Mobile IP / ISP IP

By IP Change Behavior: Dynamic IP / Static IP

By Number of Users: Exclusive IP / Shared IP

By Proxy Switching Method: Fixed IP / Sticky IP / Rotating IP

1. What Is a Datacenter IP?

A datacenter IP (also called Datacenter IP) is an IP address assigned to cloud servers, VPS, colocation servers, and other infrastructure. When you purchase a VPS, the public IP provided by the provider usually belongs to a datacenter network.

Advantages: Inexpensive, fast, stable connection, and easy to keep the same IP for a long time. Ideal for self-hosted VPNs or proxies, deploying websites, and running APIs.

Disadvantages: Websites can easily detect that it comes from a datacenter. Banks, payment platforms, ticketing services, streaming platforms, and social networks tend to scrutinize datacenter IPs more strictly.

However, a long-term exclusive datacenter IP with no history of abuse and normal usage behavior can actually be more stable than a heavily shared residential proxy IP with messy historical records.

Additionally, VPS IPs are often recycled by the provider. The IP you just purchased may have been used by a previous customer and could carry prior usage history, so never assume it is “brand new.”

2. What Is a Residential IP?

A Residential IP comes from a home broadband provider and is the exit IP used by ordinary household users. When a website sees a residential IP, it typically assumes it belongs to a real home user rather than a server in a datacenter. Therefore, residential IPs often appear more legitimate in risk control systems and are usually more expensive than datacenter IPs.

However, residential ≠ dynamic. “Residential” refers to the network origin (which broadband line it comes from), while “dynamic” refers to whether the address changes. Home broadband connections are usually dynamic, whereas VPS IPs are more commonly static.

Residential IP ≠ clean IP. A natural origin does not guarantee a clean history. Residential IPs can also be heavily shared among proxy users, used by scrapers, and accumulate negative records. A heavily abused residential IP can actually be less reliable than a clean, exclusive datacenter IP.

3. What Is a Mobile IP?

A Mobile IP comes from a mobile carrier’s 4G/5G network exit. When mobile data is used to access the internet, traffic passes through base stations and the carrier’s network before exiting. Because carriers have a limited number of public IPs, they typically use large-scale CGNAT, meaning many mobile users share the same exit IP. As a result, it is difficult for websites to pinpoint a specific device based solely on a mobile IP.

Why do mobile IPs sometimes enjoy higher trust? Because normal mobile users already share exits in large numbers, platforms are reluctant to block an entire IP just because one user within that pool misbehaves, as it would cause too many false positives. That said, mobile IPs are not immune to risk control — platforms still combine device fingerprinting, account history, and behavioral signals when making decisions.

Mobile proxies work by providing 4G/5G exits to others (usually devices with inserted SIM cards acting as nodes). The IP a website sees is typically a mobile carrier IP. These services are generally more expensive because they require maintaining SIM cards and data plans.

4. What is an ISP IP?

ISP stands for Internet Service Provider. Broadly speaking, both home broadband and mobile IPs are provided by ISPs.

However, in the proxy market, the terms "ISP proxy" or "static ISP IP" have a more specific meaning: the IP is registered as belonging to a telecom carrier, but the server is actually hosted in a data center.

It combines the advantages of both worlds:

  • Trust level like residential IP: IP databases show it belongs to a carrier. To risk control systems, it doesn’t look like a “data center” IP, making it less likely to be flagged compared to regular datacenter IPs.
  • Usage like datacenter IP: It offers long-term fixed addresses, 24/7 uptime, exclusive or lightly shared usage, with speed and stability close to datacenter servers — faster and more reliable than real residential proxies.

That’s why ISP IPs deliver datacenter-level speed combined with a carrier-grade trustworthy appearance. Their pricing also sits between the two. They are ideal for long-term account nurturing, advertising campaigns, and managing multiple e-commerce stores.

You may also come across the term “Dual ISP”. It is a variant of ISP proxies with two layers of meaning:

  • Ownership: When checking the IP, both the ASN and the company name appear as telecom carriers (single ISP only shows the ASN as a carrier).
  • Network: The proxy server is connected to lines from two or more carriers at the same time, providing an extra backup line and higher stability.

It does not change the fundamental fact that “the server is still in a data center.” Some “Dual ISP” products are actually broadcast IPs — the address is registered under Carrier A, but the traffic actually exits from a Carrier B data center. The ASN and routing don’t match, which can sometimes make it easier for risk control systems to detect.

Term Simple Explanation
Dynamic IP The address changes. It may switch when you redial or after some time. Common with home broadband and mobile networks.
Static IP The address remains fixed for a long time. Common with VPS, servers, and enterprise dedicated lines.
Exclusive IP Mainly used by one person. You have better control over its history, but “exclusive” does not equal anonymity — platforms can more easily link it to your account.
Shared IP Many people use the same exit IP. Common in commercial VPNs. Lower cost, but other users’ behavior can affect the IP’s reputation.

There are also three terms based on how the IP switches:
Fixed IP (remains unchanged long-term),
Sticky IP (remains the same within one session, may change after timeout or reconnection),
Rotating IP (automatically changes every certain period or with each request).

5. How to Choose for Different Scenarios?

Use Case Better Choice
Daily browsing, multi-device use Commercial VPN (convenient, multiple regions)
Long-term fixed work exit Self-hosted VPN on VPS (fixed IP, high control)
Route only specific apps through a certain exit Proxy (split by application/domain)
Company whitelist / remote work Fixed datacenter IP or static ISP-type IP (stability and exclusivity matter most)
Long-term use of personal accounts Stability is key — a stable regular datacenter IP can sometimes appear more natural than constantly rotating residential IPs
Large-scale public data scraping Rotating residential or mobile proxies (many different exit IPs)
Type Typical Source
Datacenter IP VPS, cloud servers, data centers
Residential IP Regular home broadband
Mobile IP 4G/5G carriers
ISP-type IP Carrier address resources + datacenter hosting
Commercial VPN IP VPN service provider servers
Self-built VPS exit VPS you rent yourself

6. After Getting an IP, How to Quickly Check It?

If you obtain a new IP (for example, a newly purchased VPS), let Codex quickly run through this checklist:

  1. Check the exit IP — confirm what it actually is.
  2. Check ownership and ASN — verify whether it matches what the seller claimed (datacenter / residential / mobile).
  3. Check historical reputation, then test latency and packet loss.

8. How to Understand Node Names and Proxy Services

This section expands on topics that weren’t fully explained in the previous Clash Verge article.

Suppose you use Chrome to access YouTube through a U.S. node. The complete path is:

Chrome

→ Local proxy software

→ U.S. proxy server

→ YouTube

This path can be divided into three parts.

The first part is how Chrome hands traffic over to the local proxy software. Common methods include HTTP proxy, SOCKS5, system proxy, and TUN.

The second part is how the local proxy software connects to the U.S. proxy server. This is where protocols such as Shadowsocks, VMess, VLESS, Trojan, or Hysteria 2 come into play.

The third part is the U.S. proxy server connecting to YouTube on your behalf.

Different terms in node names correspond to different roles:

Role Plain English Common Terms
Remote Proxy Protocol The rule used for communication between local proxy software and the remote server Shadowsocks, VMess, VLESS, Trojan, Hysteria 2
Data Transport Method Whether proxy data is sent directly or first wrapped in another format RAW, WebSocket, gRPC
Node Security Protection How the connection between local proxy software and remote server is encrypted and authenticated TLS, REALITY, protocol-native encryption
Underlying Transport The lowest-level network protocol used to move data TCP, UDP, QUIC

UUIDs, passwords, and keys act like access passes to prove you are authorized to use the node. IP addresses, domains, and ports tell the software where the remote server is located.

1. Common Node Names

A node’s technical configuration is often condensed into its name, typically composed of the remote proxy protocol, data transport method, node protection method, and underlying transport. You’ll mostly encounter these when purchasing a plan. It’s enough to have a general impression — there’s no need to dive too deep (it can be a waste of time). If you really want to understand a specific name, ask Codex for clarification.

Node Name Remote Proxy Protocol Data Transport Node Protection Underlying Transport
VLESS + TCP + TLS VLESS RAW (shown as TCP in UI) TLS TCP
VLESS + WebSocket + TLS VLESS WebSocket TLS TCP
VLESS + gRPC + TLS VLESS gRPC / HTTP/2 TLS TCP
VLESS + TCP + REALITY VLESS RAW (shown as TCP in UI) REALITY TCP
Trojan Trojan Trojan’s own data format TLS TCP
Shadowsocks Shadowsocks Shadowsocks’ own data format Shadowsocks built-in encryption TCP / UDP
Hysteria 2 Hysteria 2 QUIC streams and datagrams QUIC security mechanisms UDP

2. Direct, Relay, and Dedicated Line Nodes

When service providers describe their nodes, you’ll often see terms like “Direct Node,” “Relay Node,” or “Dedicated Line Node.” These describe the path structure between your device and the final proxy server.

Direct Node: Your device connects directly to the final overseas proxy server. The structure is simple, but performance heavily depends on your local ISP’s international routing to the overseas server. During peak hours, latency and packet loss can increase significantly.

Your device

→ Overseas proxy server

→ Destination website

Relay Node: Your device first connects to a nearby or better-routed relay server, which then forwards traffic to the overseas exit server. This can significantly improve the first half of the connection.

Your device

→ Relay server

→ Overseas exit server

→ Destination website

Dedicated Line Node: The provider uses more stable, managed private lines on certain network segments instead of relying entirely on public internet random routing (usually also involves relaying).

3. Data Allowance and Multipliers in Subscription Plans

Proxy subscription plans (often called “airports”) usually limit monthly data usage — for example, 100 GB per month. Both upload and download traffic count toward the limit. Once the quota is exhausted, the service may be suspended or throttled.

What is a multiplier? The multiplier determines how much of your plan’s data allowance is deducted when using a particular node. If you use 1 GB of traffic:

  • A 0.5× node deducts 0.5 GB
  • A 1× node deducts 1 GB
  • A 2× node deducts 2 GB

Higher-multiplier nodes usually correspond to more expensive or higher-quality routes. However, the multiplier is only a billing rule — it does not necessarily mean the node is faster.

9. Calling AI APIs: Interfaces, Streaming, and Common Pitfalls

Everyone should be familiar with APIs — if you’ve played with AI, you’ve definitely come across them!

1. API: How Programs Talk to Each Other

An API (Application Programming Interface) is a pre-agreed contract between programs: one program makes a request in a specified format, and the other returns results in the agreed format.

You can think of an API like a restaurant menu: you don’t go into the kitchen (you don’t touch the server’s internals), you simply order from the menu (send a request), and the kitchen prepares and serves the dish (returns the result).

Common terms:

  • API Key: The "ID card" you attach when accessing an API. It proves you have permission and is used for usage-based billing — like a membership card. Keep it confidential; if leaked, others can consume your quota.

  • REST API: The most popular style of API today. It uses standard HTTP methods such as GET, POST, etc.

  • Webhook (Callback): The reverse direction — instead of you constantly asking, the server notifies you when something happens. For example, when an AI task finishes, the server actively POSTs to your provided URL. It’s like receiving a text message when your delivery arrives.

2. How Does AI Chat Achieve the "Typewriter" Effect? — SSE and WebSocket

When using ChatGPT or Claude, the response streams out word by word. This is called streaming. Instead of waiting for the entire answer to be generated before sending it all at once, the model pushes content as it’s being generated — creating the familiar typewriter effect.

The core technology behind this is SSE (Server-Sent Events): a one-way, long-lived connection from server to browser. Every time the AI generates a new token, it pushes it immediately, allowing you to see the model’s thinking process in real time.

SSE (One-way Streaming):

ChatGPT Server → Generates and pushes tokens in real time → Browser → You see continuous typing

Advantages: Built on HTTP, simple to implement, and includes automatic reconnection. OpenAI and Anthropic’s streaming API outputs use SSE by default.

WebSocket (Bidirectional Real-time): Like making a phone call — both sides can speak at any time. It’s ideal for scenarios where the client needs to send instructions back, such as “interrupt” or “cancel generation” during multi-turn conversations. The best example right now is ChatGPT’s Live mode — if you haven’t tried it for English conversation practice, you really should!

3. Common Pitfalls When Calling AI APIs: Rate Limits, Timeouts, and Retries

Calling APIs from DeepSeek or other large language models (LLMs) is rarely completely smooth — you’re bound to run into some issues.

Rate Limiting: AI providers set limits on how many requests or tokens you can use per minute or per day. Exceeding these returns a 429 (Too Many Requests) error. This is a protective measure, not a bug. Solutions include controlling concurrency, reducing request frequency, and reserving quota.

Timeouts: AI generation can be slow (a simple question might take 1 second, while complex reasoning can take 30+ seconds). Setting a single overall timeout often leads to either prematurely killing long responses or hanging indefinitely. The correct approach is layered timeouts:

  • Connection timeout: Keep it short (a few seconds). If it can’t connect, it’s a network issue.
  • Streaming (first-token) timeout: Set a limit for how long you’re willing to wait for the first token. If nothing appears after X seconds, something is wrong and the connection should be terminated.

Retries: Network jitter, temporary rate limits, or server 5xx errors can all cause failures. However, not every failure should be retried:

  • Safe to retry: 429, 500/502/503, connection timeouts (these are transient issues).
  • Should not retry: 400 (bad parameters), 401 (unauthorized) — retrying won’t help.

Once you understand all these concepts, you won’t have to keep asking Codex, “Please explain this in simple terms, I don’t understand…”

Since you’ve read this far, I know you’re not an ordinary learner. So let me leave you with a question to think about together: If you can ask Codex to explain something in plain language, can others do the same? What is the real difference between you and them?

With these foundations in place, I’ll assume everyone following me now understands them. In future articles, I’ll share more practical, hands-on tutorials for solving real-world problems.

My answer to that question is exactly why I’m writing this series.

This article took several days of careful refinement. Creating quality content isn’t easy — if you found it helpful, please give it a like! Your support is my greatest motivation.