Client public IP API at the edge

Quickly fetch the user's public IP from an API endpoint on your own domain, with no origin.

VCL

Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):

Compute

Use this solution in your Compute service:

  1. Go
  2. JavaScript
  3. Rust