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

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_...