Check Public IP via Curl

The curl command below queries RookCheck's IP API and returns your public IP as JSON. With a VPN active, the IP should match your VPN exit node.

When to use this command

Run before and after connecting a VPN to confirm your visible IP changed. Use RookCurl to execute the command without installing curl locally.

How this page is different

Check Public IP via Curl exists to copy a curl command that prints the public IP from a terminal. It is not a second copy of the tool homepage. The homepage introduces the whole product. This page stays on one job so a search for that job lands on instructions you can follow without hunting through other tabs. Read the result on this page against the input you actually used. A screenshot without the input is not evidence. If the result surprises you, change one thing and run it again before you change your VPN, browser, or server config.

Do this on the page

Work through Check Public IP via Curl in order. 1. Copy the command. 2. Run it in a terminal, not only on this web page. 3. Compare the printed address with RookCheck in the browser. 4. A mismatch means split tunneling. Write down the input and the output together. When you ask someone for help, send both. Repeat the same input once. A stable tool returns the same answer. If it does not, the input changed or the page is talking to a different network path than you think.

What this page will not decide for you

The command shows the terminal's route. It does not show WebRTC. A proxy in the shell profile can change the result. Treat the output as a measurement, then decide. RookVPN does not log the contents of a client-side tool, and a measurement is not a promise that every other app on the device behaves the same way. Compare a second path when the decision matters: a terminal command, another browser, or the matching guide linked below.

A concrete example

Example: curl -s https://rookvpn.com/check/api/ip/address prints 203.0.113.8 and the browser shows a different address. Fix the terminal's proxy or the VPN's split tunnel. Do not average the two addresses.

Where to go next

After you finish Check Public IP via Curl, open the wget and PowerShell variants if curl is not the client you have if the next question is different from the one this page answers. Stay here if you are still on the same job. Extra pages help only when they answer a new question, such as a different algorithm, a different leak channel, or a different file type. The documentation link on this page is the long form of the same workflow, including the checks that do not fit in the tool UI.

Frequently asked questions

What does the response contain?

The API returns JSON with your public IP, geolocation hints, and request metadata useful for privacy diagnostics.

Why not only use the website?

The website shows the browser path. The command shows the terminal path.

What does a timeout mean?

The terminal could not reach the endpoint. That is a network failure, not an IP of 0.0.0.0.

Should I add extra flags?

Start with the printed command. Add -v only when you need the TLS trace.

Curl home Online curl guide VPN leak test Hash generator
Online Curl Tool Check Public IP via Curl VPN Leak Test DNS Leak Test Encrypted File Sharing