469,625 Members | 1,097 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

ASP and IP addresses

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

Bill
Jul 19 '05 #1
3 2044
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

"Bill Crouch" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
I can't find the code to display the client IP address on
the client browser. Shouldn't it be 'session. '?

Bill

Jul 19 '05 #2
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!
-----Original Message-----
Request.SErvervariables("remote_addr") will display the IP that the requestcomes from, whether that's an IP of a proxy server, firewall, router, or theclient machine.

Ray at work

"Bill Crouch" <an*******@discussions.microsoft.com> wrote in messagenews:01****************************@phx.gbl...
I can't find the code to display the client IP address on the client browser. Shouldn't it be 'session. '?

Bill

.

Jul 19 '05 #3
On Wed, 12 Nov 2003 09:16:46 -0800,
<an*******@discussions.microsoft.com> wrote:
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
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by dave | last post: by
2 posts views Thread by Hoang | last post: by
17 posts views Thread by Andrew McLean | last post: by
6 posts views Thread by DebbieG | last post: by
11 posts views Thread by Paul Fi | last post: by
1 post views Thread by Lyle Fairfield | last post: by
4 posts views Thread by =?Utf-8?B?U2VyZ2Vp?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.