I m learning JSP now. I tried to test a very simple sample JSP file, there is one line code inside: ... <% ... out.println("Your IP Address is : " + request.getRemoteAddr()); ... %> ...
I checked this JSP file, it works well, gives me expected information. But, only above code output is different in different browsers:
IE8/谷歌浏览器:输出正确,例如192.168.214.161
但在Firefox/Opera中:我的本地ip地址变成了另一个:192.168.99.211。
我问了我们的网络管理员,但不确定这意味着什么,可能是一个邮件服务器。
So, anybody can teach me why? Besides, my working environment is: Client side: WinXP; Server side: Windws Server 2003 R2/Apache Tocmat 5.5.17, JRE1.5.0_15.
提前谢谢。