on 04-24-2006 5:30 PM
Hi all,
hopefully someone can help me here. Getting the client's IP-address from the http-request has been discussed here, however I have one specialty:
We are working with the SAP Web Dispatcher.!
Doing this the "request->get_header_field( '~remote_addr' )." returns always the IP-address of the Web-Dispatcher!
Anyone knows if there is a way to get the ip-address of the real "client" ??
Thanks in advance
Stefan Hester
Eddy,
I have just tried the header field "x-forwarded-for"
and it is empty. If I remember correctly, I have seen this somewhere here in the forum. I think this was related to a Web Application Firewall/Reverse Proxy, which forwarded the client ip-address to the WAS using this additional header field... !?
In my case, it would be the SAP Web Dispatcher itself which needs to add an additional header with the client ip-address. Unfortunately I haven't been able to find anthing on this issue. If it exists, it is hidden pretty good (if it is in the documentation at all). If not, I may wonder who decided to ignore the client's ip-address...
Regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this help.
http://help.sap.com/saphelp_nw2004s/helpdata/en/de/89023c59698908e10000000a11402f/frameset.htm
You'll see that there is a param wdisp/add_xforwardedfor_header
which
"The parameter determines whether the SAP Web dispatcher includes the IP address of the client in the header field x-forwarded-for. If it does, the application on the application server can read the route that the request has taken. If the parameter has the value false, the Web dispatcher leaves the header field unchanged."
Together with the forwarder field that I've mentioned earlier, this should achieve things you need.
Eddy
Yes, this sounds very much like exactly what I was looking for. If this works as described, this should be it.
I haven't been able to test this, because I have now idea how to change the parameters of the Web Dispatcher and my colleague is on vacation.
Thanks a lot.
Regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Olivier for you quick reply ..... We have already Done that, but not sure where can we check the client IP on SAP server. SM04 shows the entry for Web dispatcher. Can you please advice on this.
Alternatively, We can see the incoming hits on Web Dispatcher at Active Connections of Web Dispatcher Admin page. We will try to capture that info for our use.
Regards,
Vishal
Hi,
With the parameter set, you will be able to generate ICM HTTP logs with the browser IP address or you can program a specific abap program to display it.
You will never see the information automagically in SM04. SM04 "does not know" that it is called through the ICM and webgui...
Regards,
Olivier
Hi,
Raja: I used HTTP-Watch, but as far as I can see there is not information at all in the request about the client IP-address
Dezso: sorry, WAS 6.20 (with 6.40 kernel), so I won't be able to use the recording.
I cannot believe that I am the only one trying to get the client-ip...
Thanks and Regards,
Stefan Hester
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
if you have WebAS > 640 you can also try the Recording:
/people/dezso.pap/blog/2006/04/05/icf-recording--a-possibility-for-analysing
Here you can check evrything what arries to the server.
Check also the view option "in new session".
Regards,
Dezso
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
may be you can try HTTP watch tools to watch whats being transported the HTTP reader
http://www.httpwatch.com/viewer.htm#ggviewer-offsite-nav-10167408
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.