Hi @natanzi , you can’t really “convert IP to URL”. The best you can get out of an IP is a domain name of a server, and that is if there is a domain with that IP.
Ping always return an IP (along with other info such as response time and ttl) so if you ping a domain name, you will get the IP of that domain, and if you ping an IP, you will get the IP back, not the domain.
The Server location should be determined by the IP, even if the domain name can give you an idea of the country location, but there is no rule that prevents me from registering any domain for any location, so the IP is more reliable to for determining location.
Domain expiry can be obtained from the registrars via a whois, that is for public domains. And to get the domain name, you can do a reverse dns lookup on the IP.