[Photonicat2 LCD] LCD can't show public IP when photonicat.com is blocked

Started by Sl

Sl

Hi,
I ran into a problem with the public IP shown on the Photonicat2 LCD.
The display gets the public IP from two fixed addresses:

IPv4: https://4.photonicat.com/ip.php
IPv6: https://6.photonicat.com/ip.php

On some networks and in some countries these addresses are blocked or just don't load. When that happens, the LCD can't get the IP at all, and there's nothing I can do about it because the address is hardcoded and I can't change it.
Could you make these URLs editable in the JSON config, the same way ping_site* already is? Then if the default doesn't work on my network, I can just point it to another one. Some users also like this for privacy reasons, since they can choose where the request goes. Keeping photonicat.com as the default is totally fine.
I tested a few public services and most return just a plain IP, so they'd work as drop-in replacements:

curl https://icanhazip.com       # plain IP - OK
curl https://ident.me            # plain IP - OK
curl https://ipecho.net/plain    # plain IP - OK

One more thing: a couple of services give back a web page instead of a plain IP, and it depends on the User-Agent. For example ifconfig.me returns HTML with the current User-Agent, but a plain IP if I use wget. So being able to set a custom User-Agent would help too (and is nice for privacy).
Also, has the editable-URL change maybe already been added in a recent firmware?
Thanks!

admin Staff

Thanks for reaching out, we will provide this feature around 1-2 weeks, we have already implemented it, need some testing.

Want to reply to this topic?

Sign in to participate

Don't have an account? Sign up