Connecting Tech Pros Worldwide Help | Site Map

IP address

  #1  
Old March 30th, 2006, 06:15 PM
Progman
Guest
 
Posts: n/a
How do you get the IP address of a computer using ASP.net?


  #2  
Old March 30th, 2006, 06:15 PM
Juan T. Llibre
Guest
 
Posts: n/a

re: IP address


The server's IP address or the client's IP address ?



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
===================================
"Progman" <adfawefqw@hotmail.com> wrote in message news:kXUWf.16691$F84.81526@weber.videotron.net...[color=blue]
> How do you get the IP address of a computer using ASP.net?
>[/color]


  #3  
Old March 30th, 2006, 06:25 PM
MattB
Guest
 
Posts: n/a

re: IP address


Progman wrote:[color=blue]
> How do you get the IP address of a computer using ASP.net?
>
>[/color]

Assuming you mean a client computer, it's:

Request.ServerVariables("REMOTE_ADDR")

HTH,
Matt
  #4  
Old March 30th, 2006, 06:25 PM
Karl Seguin [MVP]
Guest
 
Posts: n/a

re: IP address


If you mean the client browsing to your site, try Request.UserHostAddress

Karl

--
http://www.openmymind.net/
http://www.fuelindustries.com/


"Progman" <adfawefqw@hotmail.com> wrote in message
news:kXUWf.16691$F84.81526@weber.videotron.net...[color=blue]
> How do you get the IP address of a computer using ASP.net?
>[/color]


  #5  
Old March 30th, 2006, 07:25 PM
Bruce Barker
Guest
 
Posts: n/a

re: IP address


note: this is usually the nat'd (proxy servers) address not the real address


-- bruce (sqlwork.com)


"MattB" <somedudeus@yahoo.com> wrote in message
news:492l4hFmn0fiU2@individual.net...[color=blue]
> Progman wrote:[color=green]
>> How do you get the IP address of a computer using ASP.net?[/color]
>
> Assuming you mean a client computer, it's:
>
> Request.ServerVariables("REMOTE_ADDR")
>
> HTH,
> Matt[/color]


  #6  
Old March 30th, 2006, 07:35 PM
Progman
Guest
 
Posts: n/a

re: IP address


I get
Request for the permission of type
'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

WHY?

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:OAqSdSCVGHA.1204@TK2MSFTNGP12.phx.gbl...[color=blue]
> If you mean the client browsing to your site, try Request.UserHostAddress
>
> Karl
>
> --
> http://www.openmymind.net/
> http://www.fuelindustries.com/
>
>
> "Progman" <adfawefqw@hotmail.com> wrote in message
> news:kXUWf.16691$F84.81526@weber.videotron.net...[color=green]
>> How do you get the IP address of a computer using ASP.net?
>>[/color]
>
>[/color]


  #7  
Old March 30th, 2006, 08:55 PM
sirfunusa
Guest
 
Posts: n/a

re: IP address


Why not. What are you talking about. We are not mind readers. What code
causes this error??

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get client IP address assigned by ISP Mike answers 15 October 24th, 2008 06:05 PM
Find IP Address Souljaz answers 12 November 21st, 2005 08:53 AM
Obtaining Client IP Address using *JavaScript ONLY* (was: So TOR is NOT really anonoymous!) Privacy Advocate answers 7 August 27th, 2005 01:45 AM
RMI binding to SAME port but DIFFERENT IP address on SAME host Alexander N. Spitzer answers 21 July 18th, 2005 12:33 AM
PHP, Visitor IP address and invisible proxies Juha Suni answers 3 July 17th, 2005 10:54 AM