php socket获取客户端IP地址 $spawn1=socket_accept($socket); socket_getpeername($spawn1, $addr, $por); echo $addr." ";