Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2004, 12:43 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to VinodTewthia Send a message via Yahoo to VinodTewthia
Default how to track IP of client's system

i want to restrict the user to login my web applicate twice with different LoginID from the same machine, But i found no way to trace client's IP add to restrict the second login request. Can anybody help me!:(
 
Old December 10th, 2004, 05:56 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have never done this myself, but I believe you can use:

request.getRemoteAddr() or request.getRemoteHost()

I lifted this from another forum where the poster commented that this would not work if the client was behind a firewall.

 
Old December 11th, 2004, 12:10 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to VinodTewthia Send a message via Yahoo to VinodTewthia
Default

Quote:
quote:Originally posted by angrycat
 Have never done this myself, but I believe you can use:

request.getRemoteAddr() or request.getRemoteHost()
I tried this code but if user is behind any proxy or firewall then it return the IP of that proxy, and that is i wont to do!
some other way to track that client?:(






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get client's computer name? ashu_from_india Oracle 2 May 12th, 2006 10:27 PM
Help: how to detect client's system locale? Thanks tomli ASP.NET 1.0 and 1.1 Basics 1 March 28th, 2006 12:16 AM
How to Save a file on client's system suri_thanda Classic ASP Components 3 April 18th, 2005 02:44 PM
How to track the IP address hums .NET Framework 2.0 5 October 20th, 2004 08:45 AM
Client's I.P. Address ChrisLee Classic ASP Basics 2 June 15th, 2004 10:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.