主题:  Getting a Client's IP Address

s22

职务:版主
等级:4
金币:10.0
发贴:1634
注册:2004/12/19 13:06:46
#12003/7/30 0:17:37

I recently found that in remote ColdFusion functions invoked by Flash Remoting, I was not able to get the client's IP address from the CGI variable CGI.REMOTE_ADDR or CGI.REMOTE_HOST, however I was able to get it in Java by using getPageContext().getRequest().getRemoteAddr(). Strange, huh? I haven't check Red Sky for the same issue yet, so it might have been resolved (I'll try that this afternoon), but for how, getPageContext() saves the day once again.
=========
明天在我机器上测试一下,嘿嘿.这个还是比较有用的.
比如:
我同时检测 CGI.REMOTE_ADDRR 跟getPageContext().getRequest().getRemoteAddr(). Strange.如果2个都能检测出,那说明肯定不是通过FLASH传递参数的嘛.
不过也许这会有漏洞



龙辛

职务:普通成员
等级:1
金币:0.0
发贴:18
注册:2003/3/30 10:22:21
#22003/8/13 12:14:43
这个很简单的