CF-Connecting-IP delivering wrong IP

I’m having a problem trying to get the real IP through Header CF-Connecting-IP

When the user’s IPV6 is active, the CF-Connecting-IP Header is incorrect, only the IPv6 header is correct, and the user needs to disable IPv6 so I can get the real IP with CF-Connecting-IP.

I experienced this issue in a React/Electron application. Cloudflare gave me a different ip than the pure electron. · Issue #2989 · electron-react-boilerplate/electron-react-boilerplate · GitHub

Of course, because there’s no IPv4 address and you configured Cloudflare to provide a pseudo address.

You might want to disable it altogether, so that you only get the IPv6 address.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.