Hi Folks, we are implementing a basic auditing functionality into our application. Is it possible to somehow catch a user's local IP address - IP address taken from user browser ? A below command returns IP address of server, where is a database running.
Kind regards, Tomas |
You can use a javascript function returning the browser ip, and get the result via the external methods functionality. Just look at the tutorials on how to do it. Akis |
Hi Tomas, Unfortunately there is no api to get the user ip address for now. I have opened a ticket for your request for version 1.2. Hi Tomas, Since version 1.2, you can use api_session.getUserIP API to get the user IP. Regards, Ibrahim
(21 Dec '12, 09:20)
Ibrahim Sand... ♦♦
|
I agree with you vilsidis ! I have used the following code snippet to access users local ip address : request.connection.remoteAddress Here, connection is a property for request object . connection property comes under net.stream object. It contains remoteAddress property which is used to get the ip of the user . I have used the site Ip-details.com to view my public ip address . |