WhatsMyIp.cloudflare.com

I currently use ipv4bot.whatismyipaddress.com to lookup my public ip address on the other side of my NAT gateway. Is there a simmilar cloudflare service that will just return the public address of the requester a lot like https://www.cloudflare.com/learning/dns/glossary/what-is-my-ip-address/ page does, but without all the html fluf?

Why wouldnt you want to continue to use the service you are currently using?

If it has to be “Cloudflare”, you could try https://cloudflare.com/cdn-cgi/trace and parse the ip part.

I wouldn’t want to continue using the service because I think its a little bit unethical (I get a cringy feeling when I do). I would much prefer to use one provided by cloudflare.

That url should be perfect! I’ll try it.

Edit: https://github.com/drittich/DnsTube is the updater in use. I have a fork of it that I’m updating.

In which way should that be “unethical”? As far as I understand you are using it the way it is intended to be used. And how would Cloudflare be “more ethical”?

It’s not actually unethical. It just feels that way, to use a 3rd party, when cloudflare has one (as I have just learnt)

Cloudflare is a third party as well and that service is intended to be used that way. There is nothing unethical about it, respectively using Cloudflare would be just as “unethical”.

Anyhow, if you want fetch the IP address from Cloudflare you should follow the advice given earlier.

I think it’s less unethical, because I’m using a cloudflare ip lookup to update my (paid for) cloudflare dns service.

You can self host your own IP lookup tools too. I ended up doing that as a test to be independent of 3rd party services.

1 Like

Thats your subjective feeling and there is little point in discussing such. Fact is, the service is intended to be used in that way and there is nothing unethical. If you want to use Cloudflare I need to refer you to my earlier comments.

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