Solved

Getting a client's IP address

Posted on 1999-01-14
2
141 Views
Last Modified: 2013-12-25
I am interested in identifying a client which activates a cgi/servlet on my server. I would like to use his IP address as the identifier. How can I read this identifier in my cgi/servlet? I know the cgi variables REMOTE_HOST and REMOTE_ADDR give me some information about the client, but it is not necessarily his exact IP. I think it's only his network IP. Is there something else?
0
Comment
Question by:ariefishler
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
mouatts earned 50 total points
ID: 1830589
The IP address returned is the full, and only IP address, that you can get to. It is this address that the server will respond to when it sends data back to the client.

The problem is that if the client is behind a firewall or is using a caching proxy server then the IP address that you will see is the IP address of the proxy server. The real IP address is held by the proxy so that when you respond to it it will respond to the client.

If the client is not using a proxy the the IP address will be the IP address of the actual machine.

I am afraid there is no way around this as has been discussed and mentioned several times before in other questions.

As also stated the only ways in which a user can reasonably be recognised are.

1) To store a cookie which you can re-read on subsequent accesses.

2) Allow registered users through a password control mechanism and then track the user through the course of you site.

3) Implement the site via SSL and require a certificate. This is generally not an option at the present time as the use and understanding of certificates is so poor generally that you would  get no users to you site.

HTH
    Steve
0
 

Author Comment

by:ariefishler
ID: 1830590
Thanks....was quite quick !!!!
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question