I need client IP address from Public IP server
Hi,
I need help for how to get client ip address from Public ip server.
for ex:
String ipAddress = request.getHeader("X-FORWARDED-FOR");
if(ipAddress == null)
{
ipAddress = request.getRemoteAddr();
}
I had use this code.This code is not working Public ip server.This code get only gate way ip only
Plz give the solution for this.
Re: I need client IP address from Public IP server
As far as i know, you can not get directly, the Client's IP address.
Re: I need client IP address from Public IP server
I've moved this thread. Please read this before posting again: http://www.javaprogrammingforums.com...e-posting.html
Re: I need client IP address from Public IP server
Quote:
Originally Posted by
packiaraj
This code get only gate way ip only
If the proxies are honest then X-Forwarded-For is as good as it gets. If they don't add that header - or falsify it - there's nothing you can do.
Re: I need client IP address from Public IP server
is there any idea for how to get???
Re: I need client IP address from Public IP server
can u send me any sample code ....
Re: I need client IP address from Public IP server
In oracle Forms i can get client ip from public ip set up
Code
Clientinfos.jar using this jar
getIP= GET_CUSTOM_PROPERTY(BLOCK.BEAN,1,IP);
But In java i cannot get ...
Tell us any ide.....
Re: I need client IP address from Public IP server
Did you try studying about Clientinfos.jar?
What classes it has? What does it support? What features can if combined, take you to the right direction?
You need to go through the Clientinfos.jar in order to make your idea work.