Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I get the IP Address of the current system/phone from where I am accesing the app

Udit NagpalJan 16 2018 — edited Jan 22 2018

Hi All,

How can I get the IP Address of the current system/phone from where I am login the application?

I have tried below but it is giving the IP address of web and server. I want to get the IP Address of current system from where I am accessing the application.

select SYS_CONTEXT('USERENV', 'IP_ADDRESS', 15) ipaddr from dual;

select SYS_CONTEXT('USERENV', 'HOST', 15) host_name from dual;

select sys_context('userenv','ip_address')  from dual;

select utl_inaddr.get_host_address(sys_context('userenv','server_host'))  from dual;

Any suggestions would be appreciated.

Best Regards

This post has been answered by fac586 on Jan 22 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2018
Added on Jan 16 2018
23 comments
4,729 views