REMOTE_ADDR

%e7%84%a1%e9%a1%8c

echo $_SERVER["REMOTE_ADDR"];
$ip = $_SERVER["REMOTE_ADDR"];

echo ip2long($ip);

host

$host = "syncer.jp";

echo gethostbyname($host);