ASP and IP addresses

B

Bill Crouch

I can't find the code to display the client IP address on
the client browser. Shouldn't it be 'session. '?

Bill
 
R

Ray at

Request.SErvervariables("remote_addr") will display the IP that the request
comes from, whether that's an IP of a proxy server, firewall, router, or the
client machine.

Ray at work
 
G

Guest

Hi Ray,

These are two of the "Session" code instances I am
currently playing with. Both display on the client PC
the session ID and the Date and Time.


Your Current Session ID is: <%=session.sessionid %>

Today is: <% =Date() %>

The time is: <% =Time() %>

I had just thought that the IP display would be session
related.

Thanks!
 
J

Jeff Cochran

These are two of the "Session" code instances I am
currently playing with. Both display on the client PC
the session ID and the Date and Time.


Your Current Session ID is: <%=session.sessionid %>

Today is: <% =Date() %>

The time is: <% =Time() %>

I had just thought that the IP display would be session
related.

The client's IP isn't related to a session, nor is the
Request.ServerVariables method that good for identifying the user's
unique ID either since large ISP's will often proxy requests (AOL,
MSN, et. al.) and anyone behind a firewall will usually return the
firewall address.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top