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.
By Christian Cantrell
Comments (2)
Created
July 29, 2003

This works with RedSky. Just tried it out with both CGI vars you mentioned.
Quote: “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.”Like Scott, I too got it working with both cgi variables. Thanks for the tip.