[Solved] Fetching the server IP from URL [closed]


Try this,

<?php
$domain = "www.google.com";

$ip = gethostbyname($domain);

echo "Domain: ".$domain;
echo "<br>";
echo "IP: ".$ip;
?> 

solved Fetching the server IP from URL [closed]