JavaScript doesn’t have any concept of hostnames or IP addresses. You would have to use an external service to resolve an IP address from a hostname.
JavaScript doesn’t have any concept of hostnames or IP addresses. You would have to use an external service to resolve an IP address from a hostname.