cancel
Showing results for 
Search instead for 
Did you mean: 

capture IP-address client

Former Member
0 Kudos

Hi,

We need to capture the IP-addresses of clients who start specific WD4A applications. Browsers are mainly IE6/IE7.

(How) Is this possible? Are there any code-examples available?

Best regards,

Mark

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Sascha,

Here is the code I use to determine the IP addres:

  DATA: lo_component   TYPE REF TO if_wd_component,
        lo_application TYPE REF TO if_wd_application,
        ip             TYPE string.

  lo_component   = wd_comp_controller->wd_get_api( ).
  lo_application = lo_component->get_application( ).
  ip = lo_application->get_remote_address( ).

Cheers,

Martin

Former Member
0 Kudos

Same requirement here. Any chance to read the HTTP header in Web Dynro Abap ( at least IP of client would help)?

Former Member
0 Kudos
Former Member
0 Kudos

Hi Vijay,

Thank you for your quick reply. The link does not quite contain useful information.

An example: person X (Mark) logs on our Portal from pc Y in place Z (New York) with browser A (internet explorer 7) and start a specific iView (ie user administration).

I would like to know the IP-address of pc Y.

Best regards,

Mark

Former Member
0 Kudos

Hi Mark.

In interface IF_WD_APPLICATION is the method GET_REMOTE_ADDRESS.

You can get the application via the component controller's method get_application.

Cheers,

Sascha

Sorry it is:

component_controller->get_component->get_application->get_remote_adress

Message was edited by:

Sascha Dingeldey