获取客户端真实IP地址

获取客户端真实IP地址


2024年5月12日发(作者:免费十八种禁用网站)

162 } else if (aChar == 'r') {

163 aChar = 'r';

164 } else if (aChar == 'n') {

165 aChar = 'n';

166 } else if (aChar == 'f') {

167 aChar = 'f';

168 }

169 (aChar);

170 }

171 } else {

172 (aChar);

173 }

174 }

175 return ng();

176 }

177

178 // 测试

179 public static void main(String[] args) {

180 AddressUtils addressUtils = new AddressUtils();

181

182 /**

183 * 测试IP:111.121.72.101 中国贵州省贵阳市 电信

184 */

185 String ip = "111.121.72.101";

186 String address = "";

187 try {

188 address = resses("ip=" + ip, "utf-8");

189 } catch (UnsupportedEncodingException e) {

190 tackTrace();

191 } catch (Exception e) {

192 tackTrace();

193 }

194 n(address);//中国贵州省贵阳市 电信

195 }

196 }


发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1715504842a2628482.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信