HI!
i am using Cloudflare pages to deploy my Next JS 13 in the edge runtime , What I need is the IP address of the remote request ; I tried getting the Ip address using the ‘x-forwarded-for’ header and “CF-Connecting-IP” header and it does not work , how ever I can get the Ip address using the “CF-Connecting-IP” only on the Cloudflare workers not on my next js app ; is there a way to get the ip adress of the remote request In Next js (midleware.ts) file ?
CF-Connecting-IP is the right header. Why doesn’t it work? What’s the value? What’s the error? What else have you tried?