Restoring Visitor IP - Cloudflare Tunnel

I am using flask, no webservers ahead.
I see in logs want to see visitor IP

Cloudflare will add the client’s IP address to the CF-Connecting-IP request header, so you’ll be able to get it from there. You’ll currently see since you’ll be running cloudflared on the same host as your application, so the TCP connection is established from there locally.

1 Like