Update: ipify for Xojo - Discussion

Continuing the discussion from Update: ipify for Xojo:

I just tried the download, first test came back with a RuntimeException when calling request.SendSync because api.ipify.org is blocked by my Pi-hole – Network-wide protection (and everyone who uses pihole). I think @Javier_Menendez forgot to API2’ify the request with some Try/Catch instead of relying on the HTTPStatusCode?

This reminded me about <https://xojo.com/issue/57720> as its pretty much guess work or a heck of a lot of testing.

I submit a pull request for API 2.0 changes to the open source Ipify repository, but the owner has yet to merge it. https://github.com/aprendexojo/IPify/pull/1

I changed the silly singleton design to a modular design and made it simpler to use. Another user has even commented on the pull request “Please merge!”

You can check out my API 2.0 version here: https://github.com/devtimi/IPify

4 Likes

Probably it is better if you post your version here! :+1:

Thank you, @Tim_Parnell

Yeah, my fault… will update the project with a Try…catch block.

Hope you find it useful.

Thank you @anon20074439

1 Like