Windows 程序员 apache php Android Ubuntu mysql wordpress 开源 HTML5 linux命令 nginx shell 微软 centos linux Firefox google java 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_...