Problem in getting remote address?
ZKayJun 5 2009 — edited Jun 8 2009Hi,
I have a procedure on my login page, which reads user's IP address and stores it in a log file. I am using the following statement to get the IP address of remote user:
select owa_util.get_cgi_env('REMOTE_ADDR') from dual;
It is running fine on my workspace at http://apex.oracle.com and returns the real IP address of the remote user. But when I use the same code at my hosted server I get 127.0.0.1 instead of real IP.
Any ideas please?
Thanks,
Zahid