How to check an incoming IP address

Sometimes you want to access the true IP address of the gateway's client making the current request. To do this you can read the true-client-ip header:

const ip = request.headers.get("true-client-ip");

Was this article helpful?

Do you have any questions?Contact us
Check out ourproduct changelog