Java中的远程IP地址 [英] Remote Ip address in Java

查看:76
本文介绍了Java中的远程IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要使用Web应用程序获取计算机的远程IP地址.
我需要在不使用servlet概念的情况下获得此地址.
你能帮我吗?

如果远程客户端使用代理服务器,则如何获取真实IP地址.

谢谢.

Hi
I need to get the remote IP address of the machine using my web application .
I need to get this address without using servlet concept.
can you help me out.

If the remote client uses proxy server, then how to get the real IP address.

Thanks.

推荐答案

您不能不使用activex或applet来获取客户端计算机的真实IP地址.您所获得的只是代理ip地址或lb ip地址.使用Web应用程序的机器(如果有的话).
You cant get the real IP address of the client machine without using an activex or applet.All you get is the proxy ip address or lb ip address of the machine(if one present) using a web application.


这篇关于Java中的远程IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆