We were always successful getting cgi.REMOTE_HOST under CF10. And, like I stated, Apache has been successfully getting REMOTE_HOST with CF11 - the Apache logs show that Apache is getting REMOTE_HOST, so these aren't situations where the IP isn't resolvable. Why CF11 suddenly is seeing occasional blanks is what has me confuzzed.
As far as better Java level variables are concerned, if anyone knows of any I'm open to suggestions; but I work for USG DoD, and they tend to restrict accessing Java anything as a security measure.
V/r,
^_^
Do you have enableLookups enabled in the CF server.xml?
I think the default behaviour is as follows:
CGI.REMOTE_HOST - Hostname making the request. If the server does not have this information, it sets REMOTE_ADDR and does not set REMOTE_HOST. |
Without enableLookups enabled it wont do the lookup on the host and probably sets it as empty.
I notice in IIS though that its always set to the same value as remote_addr when lookups are disabled.