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.

SELECT SYS_CONTEXT('USERENV', 'IP_ADDRESS', 15) FROM DUAL;

Kind regards, Tomas

asked 06 Sep '12, 06:24

Tomeo's gravatar image

Tomeo
162137
accept rate: 3%


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

link

answered 12 Sep '12, 02:06

Vlisidis%20Akis's gravatar image

Vlisidis Akis
163119
accept rate: 5%

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.

link

answered 06 Sep '12, 06:45

Ugur%20Kocak's gravatar image

Ugur Kocak ♦
5616
accept rate: 23%

edited 06 Sep '12, 06:52

oskansavli's gravatar image

oskansavli ♦♦
3604

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 .

link

answered 22 Jun '13, 02:13

fashiontrend's gravatar image

fashiontrend
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1

Asked: 06 Sep '12, 06:24

Seen: 1,776 times

Last updated: 22 Jun '13, 02:13


© Copyright Gerger 2017