FWIW, I have a couple of sites that might be useful for folks trying to do this sort of thing:
http://ip.luo.ma or https://ip.luo.ma will show your (external) IP.
http://hostname.luo.ma or https://hostname.luo.ma will show your external hostname and your IP (if you are using curl
note that the hostname is the first line, then there is a <br>
as the second line, and the IP is the third line)
I was tired of trying to remember what the sites were that were good for this and not cluttered with ads, so I just put together the simplest option I could.
http://time.luo.ma or https://time.luo.ma will show you the current time, first in Unix time, and then in US/Eastern (which, as we all know, is the “One True Time Zone”). For example, as I write this, it is currently:
1595991986
Tuesday, 28 July 2020 at 11:06:26 PM EDT
I use the time
site as a quick check if I need to make sure that I’m online. Years ago I used to pull up Google but there are some portals which capture/cache Google, but no one has my little site on their radar, so it’s a good reliable way to make sure I’m online.
I have most of my sites now redirecting the http
to https
but I left these with both because sometimes it can be helpful to know if http
is working and https
is not.
Oh, and I almost forgot there is also:
http://ua.luo.ma and https://ua.luo.ma which will just show you the User Agent that your browser is reporting.
All of these are as quick and simple as possible. No ads, no JavaScript, nothing except the least amount of text possible to give the information that you want.