Hacker News new | ask | show | jobs
by 0x6A75616E 724 days ago
It's not just my IP.. There's a whole lot of HTML barf around it.
2 comments

fwiw, ifconfig.me does user agent sniffing, so curl ifconfig.me just returns the IP address used to connect, while visiting with a browser will give a lot more information.
I can do a "raw" version for IPv4 but not IPv6.
Why can't it be done for IP 6?
It probably could be but not easily. My server is IPv4 only at the moment and so I am using a Cloudflare worker to get the IP's, and I need some kind of logic to present those to the browser through my site... I'm not much of a developer you see. I'd be open to suggestions for doing both.