获取服务器IP和客户端IP

$_SERVER['REMOTE_ADDR'];   //客户端IP

gethostbyname('www.bolaiwu.com');  //服务器端IP

原文地址:https://www.cnblogs.com/jierong12/p/8378452.html