REMOTE_ADDR echo $_SERVER["REMOTE_ADDR"]; $ip = $_SERVER["REMOTE_ADDR"]; echo ip2long($ip); host $host = "syncer.jp"; echo gethostbyname($host);