Retrieving the client system's IP address

Hi,

In my application, (am using JSP), i am using the 'request.getRemoteAddr()' method to retrieve the IP of the client who hits my web page.

My prob is that this method does not give me the IP of the actual client, instead it returns the IP of the gateway (in case it is there), or if the client is connected to a dialup internet connection, the method returns the IP of the connection provider.

To make things more clear, i have a web page which a client visits. the client is connected to the internet using dialup connection. i want the IP of the client's system, and not the IP of the internet provider's server, which is what request.getRemoteAddr() is returning.

How to get the IP of the actual client system?

Any ideas anyone...

[792 byte] By [filtertipped] at [2007-9-26 2:05:16]
# 1
You cannot get the true IP address of clients if it is behind a proxy server
fayefun at 2007-6-29 8:50:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Is this relavent for INTRANETS? What I mean is if an appp is set up on say a Hospital server, and it's clients should only be allowed from inside the hospital, could I use this RemoteIP to ensure that they are internal users?
wmacey at 2007-6-29 8:50:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

> Is this relavent for INTRANETS? What I mean is if an

> appp is set up on say a Hospital server, and it's

> clients should only be allowed from inside the

> hospital, could I use this RemoteIP to ensure that

> they are internal users?

Yes, if this method is used with relevance to an intranet, it will certainly. using getRemoteAddr(), will be a good way to ensure that only clients from inside say, ur hospital, are able to use the application.

but in my case, the relevane is the internet and not intranet, and hence the problem.

Keep progRamming...

-satyen

filtertipped at 2007-6-29 8:50:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...