Public IP Address Acquisition Mechanism
Public IP addresses are unique identifiers for devices on the Internet, assigned by ISPs (Internet Service Providers). When a device connects to the Internet, the ISP assigns it a public IP address that websites and online services see. The tool obtains the client's real IP address by analyzing HTTP request headers (such as CF-Connecting-IP, X-Forwarded-For, X-Real-IP). In CDN environments like Cloudflare, the CF-Connecting-IP header contains the most accurate client IP. If the IP cannot be obtained from request headers, the tool calls third-party APIs to get the IP address.