I currently do "curl ipinfo.io" which returns json, and seems to use a more accurate geo lookup (based on the hotel wifi I'm currently on). It doesn't report the network though, and the ASN is a string of asn and name, no org or country, so that's a bonus.
However
curl ip.guide
just returns blank (there's a redirect). If you follow the redirect with -L the json isn't pretty-printed.
I currently do "curl ipinfo.io" which returns json, and seems to use a more accurate geo lookup (based on the hotel wifi I'm currently on). It doesn't report the network though, and the ASN is a string of asn and name, no org or country, so that's a bonus.
However
just returns blank (there's a redirect). If you follow the redirect with -L the json isn't pretty-printed.