Getting a Client’s IP Address With Flash Remoting

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.