Proxy code generator

Paste a proxy, pick the connection type and copy sample code for curl, Python, Node or Puppeteer. The code sends one request through the proxy to ditin.net/api/ip and prints the IP that websites see; if it shows the proxy’s IP, the proxy works.

Two formats work: ip:port:user:pass or user:pass@ip:port (address, port, username, password).

The proxy you enter is processed right in your browser and never sent to a server.

Connection type

HTTP and SOCKS5 are the two common proxy connection types. Choose the one your proxy uses.

This is example code for a sample proxy. Paste your proxy above to get your own code.

Run it in Terminal (macOS, Linux) or Command Prompt (curl comes with Windows 10 and later).

curl -x "http://user:password@203.0.113.7:8080" https://ditin.net/api/ip

What the code does

The ditin.net/api/ip page returns the IP that websites see, with its country and network. Usernames and passwords with special characters (@ : / # %, spaces, accented letters…) are encoded correctly for each sample, so you do not have to fix them by hand.

The code runs on your device and connects straight through the proxy. This page never connects to your proxy.

See also

Contact us

No Vietnamese bank account, or need help in English? Message us and we will answer by hand.