使用搜狐接口获取客户端IP地址
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>使用搜狐接口获取客户端IP地址</title>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
</head>
<body>
<script type="text/javascript">
document.write(returnCitySN["cip"]+','+returnCitySN["cname"])
</script>
</body>
</html>