View previous topic :: View next topic |
Author |
Message |
raven
Joined: 31 Jan 2006 Posts: 41
|
Posted: Tue Jan 31, 2006 5:48 pm Post subject: How do I get an IP address |
|
|
I know this comes across as a very basic question but:
How can I pull the visiting IP address under ASP.NET? _________________ Programmers do it in code |
|
Back to top |
|
|
paul
Joined: 11 Oct 2004 Posts: 128
|
Posted: Thu Feb 02, 2006 1:24 pm Post subject: |
|
|
Here is how:
Request.ServerVariables( "REMOTE_ADDR" )
Paul _________________ World Countries | Survival Skills |
|
Back to top |
|
|
Stigs
Joined: 03 Feb 2006 Posts: 9
|
Posted: Fri Feb 03, 2006 5:40 am Post subject: |
|
|
paul wrote: | Here is how:
Request.ServerVariables( "REMOTE_ADDR" )
Paul |
Thanks paul for your tips i got it my ip adderess. |
|
Back to top |
|
|
raven
Joined: 31 Jan 2006 Posts: 41
|
Posted: Wed Feb 22, 2006 1:13 pm Post subject: |
|
|
paul wrote: | Here is how:
Request.ServerVariables( "REMOTE_ADDR" )
Paul |
Paul,
Thank you very much for your response. Do you know how to get other information as well? Such as browser type, display size etc? _________________ Programmers do it in code |
|
Back to top |
|
|
paul
Joined: 11 Oct 2004 Posts: 128
|
Posted: Wed Feb 22, 2006 2:08 pm Post subject: |
|
|
raven wrote: | paul wrote: | Here is how:
Request.ServerVariables( "REMOTE_ADDR" )
Paul |
Paul,
Thank you very much for your response. Do you know how to get other information as well? Such as browser type, display size etc? |
You can get the browser, but not the display size
Request.ServerVariables("HTTP_USER_AGENT") - this will get you the browser
Request.ServerVariables("HTTP_ACCEPT_LANGUAGE") - this will give you the default language for the operating system
Paul _________________ World Countries | Survival Skills |
|
Back to top |
|
|
raven
Joined: 31 Jan 2006 Posts: 41
|
Posted: Thu Feb 23, 2006 1:50 pm Post subject: |
|
|
Thank you for your assistance Paul. You are such a big help and such a good asset to these forums. _________________ Programmers do it in code |
|
Back to top |
|
|
marbles
Joined: 01 Mar 2006 Posts: 16
|
Posted: Mon Apr 03, 2006 1:44 am Post subject: |
|
|
I've been wanting to do this myself. Thanks Paul.
This is good info to have no your own statistics pages, you can really keep track of who came to the site. |
|
Back to top |
|
|
|