验证服务器的出站IP

<html>
<body>
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'http://api.ipify.org/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$contents = curl_exec ($ch);
curl_close ($ch);
echo "Your Server's IP : ".$contents;
?>
</body>
</html>