IBM Support

getRemoteAddr() and getRemoteHost() do not return the correct value

Troubleshooting


Problem

There are changes that affect the ability of these APIs to return the correct client values.  Read this information to ensure WebSphere assigns the correct values.

Symptom

getRemoteHost() and getRemoteAddr() do not return the correct values for the client.

Resolving The Problem

A security patch, PH07036 was introduced in 8.5.5.16 and 9.0.0.11; with this security patch, the administrator must add the custom property trustedSensitiveHeaderOrigin in order to allow WebSphere to provide client address information.
If you are using z/OS,  PH11186, provided in 8.5.5.16 and 9.0.5.0, must also be applied in order for the custom property to function correctly.
With IBM i and the apache_24 plug-in module, PH10504, provided in 8.5.5.16 and 9.0.5.0, must be applied.
With plug-in module level 9.0.5.1 on any operating system, PH17449, available in 9.0.5.2, must be applied. With websocket traffic, the plug-in module must contain correction PH27966. The code correction PH27966 is included in fix packs 8.5.5.19 and 9.0.5.6 and higher.

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"base;plug-in","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"8.5.5;9.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
24 February 2022

UID

ibm11115019