Skip to Content
Aug 08, 2018 at 02:37 PM

Get Client IP + Webdispatcher + SAP Personas


Hello Experts,

I am trying to get the client IP address of the user logged in and I am able to do so with SM04 transaction in SAP HTML GUI running SAP Personas when running on a single app server. I need this information for calling some user specific printer programs.

This is working fine, however when the request is routed via Web dispatcher in Production environment it returns back the IP address of the Web dispatcher. I had a look into the following link: Configuration for Webdispatcher to add parameter wdisp/add_xforwardedfor_header and set it to TRUE.

My question is, once this configuration is done by Basis at Web Dispatcher level, how can I read this value in SAP Personas via Java Script?. Just trying to figure out a way to access the Web dispatcher header information and ultimately find the client IP address?

Any leads is greatly appreciated.