首页 > 技术文章 > 获取服务器IP和客户端IP
jierong12 2018-01-29 17:23 原文
$_SERVER['REMOTE_ADDR']; //客户端IP
gethostbyname('www.bolaiwu.com'); //服务器端IP