Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Get IP of the client who visits my site


Message #1 by Amit Sethi <amsethi@y...> on Tue, 6 Mar 2001 00:20:29 -0800 (PST)
Thnx Mandar,
Your code helped me a lot.Check the work at this 
URL:www.fsltechnologies.com/secure/homestock.jsp

thnx again..
Amit

--- mandar ghatge <mandarghatge@h...> wrote:
> Hi Amit,
>    I dont know which technology you are working with
> for developing the web 
> pages but if you are working with java servlets or
> JSP then you can get the 
> client IP using HttpRequest interface reference.you
> can write
>   String sRemoteIP = request.getRemoteAddr();
> which returns you the client IP. But you have to
> check whether it gives the 
> actual client m/c IP or it gives  the IP of the
> proxy used by the client.
> 
> Thanks,
> Mandar.


  Return to Index