XPages: Logging the IP of a user

Hi,

I’m trying to log the IP of our customers when they perform a specifc task on our Xpage application. I’ve gone through various wikis and tutorials and they all say the same thing, to use the following line:

facesContext.getExternalContext().getRequest().getRemoteAddr()

However this only gets me the first octet of the IP (i.e. 89.), not the full address. Can anyone help or shed any light on what I may be doing wrong?

Thanks in advance :slight_smile:

Subject: Same problem here!

Same problem here. Please, help!

Subject: Problem about logging IPs is solved in 8.5.2

It seems that problem problem about logging IPs is solved in Domino 8.5.2. At least it works for me now!

Subject: .

Subject: Hack…

  • You could do a reverse DNS lookup on the client name, which I believe is in the CGI variables somewhere. I had to do IP filtering years ago and wound up doing this to get the client IP address.

Hope this helps…