Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine the local IP address a client behind a router?

Status
Not open for further replies.

thesleepylizard

Programmer
Mar 18, 2002
41
AU
At work I'm behind a router. That means when our remote web server handles an ASP.NET request, it looks like it's from ther router's IP address.

Say I need to determine the IP address of the actual requester, not the router. Or something that securely identifies them (IP address, MAC address, etc).

I've tried each of the ServerVariables but they don't seem to help. Any ideas?

(Obviously there's SOMETHING that identifies the client, since the router has to forward it back when it gets the response.)
 
For the record I've found an alternative solution which is quite complex, but does the job. Involves the server sending a random identifier number on each response (all responses are encrypted) and the cilent provides that on the next request to identify itself.

Much more complex than that, but that's the basic idea.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top