linux java HTML5 微软 Android apache Ubuntu Windows centos wordpress 开源 google Python linux命令 php Firefox shell nginx mysql 程序员

dnspod

利用dnspod让内网机器的获取公网ip的方法,比较简单,附上代码: function getClientIp(){ $socket = socket_create(AF_INET, SOCK_STREAM, 6); $ret = socket_connect($socket,'ns1.dnspod.net',6666); $buf = socket_read($socket, 16); socket_...