验证服务器的出站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>

本文链接:

https://wo.mk/8.html
1 + 5 =
快来做第一个评论的人吧~