Our 'What is my IP Address' Tool is Showing the Wrong Public IP Address, Any Ideas?
X-Forwarded-For headers, hoping to find some clues. also, we've gone through our cdn and proxy settings, specifically cloudflare, like a hawk, trying to make sure it's forwarding the correct ip address. we've even run extensive tests ourselves, trying it with different vpns โ nordvpn, expressvpn, surfshark, you name it โ and various isps, thinking maybe it was a specific provider causing the headache. but nope, the problem persists across the board. what we're seeing is pretty inconsistent too, which makes it even more frustrating. sometimes, it reports the cdn's ip address instead of the user's actual external ip. other times, it's even worse, giving back a completely internal network ip, which is justโฆ useless for a 'what is my ip' tool. we're getting emails like 'your tool says my ip is 192.168.1.1, what gives?' and it's just embarrassing. users are clearly not getting their true public IP address and it's leading to a lot of frustration. so, i'm reaching out to this brilliant community for help. are there any common pitfalls we might be missing here? maybe some advanced server configurations on nginx or apache that we're overlooking? or perhaps a more robust api integration we should be using to accurately determine the true public IP address of the user, even through those really complex network setups and corporate proxies? we're really scratching our heads on this one.2 Answers
Jamal Okafor
Answered 4 days agoHello Ji-woo Kim, regarding your 'IP address' tool (quick tip: it's 'address' not 'adress'!), for reliable client-side IP detection through complex network configurations, you might need to implement a solution leveraging JavaScript to query a STUN/TURN server via WebRTC, as HTTP headers alone are often insufficient for true public IP determination with aggressive proxy or VPN usage.
Have you explored client-side JavaScript for this specific purpose?
Ji-woo Kim
Answered 18 hours agoThe WebRTC STUN/TURN server idea is exactly what we needed, i should've asked sooner Jamal Okafor!