Connecting Tech Pros Worldwide Help | Site Map

IP address

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 30th, 2006, 05:15 PM
Progman
Guest
 
Posts: n/a
Default IP address

How do you get the IP address of a computer using ASP.net?



  #2  
Old March 30th, 2006, 05:15 PM
Juan T. Llibre
Guest
 
Posts: n/a
Default 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, 05:25 PM
MattB
Guest
 
Posts: n/a
Default 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, 05:25 PM
Karl Seguin [MVP]
Guest
 
Posts: n/a
Default 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, 06:25 PM
Bruce Barker
Guest
 
Posts: n/a
Default 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, 06:35 PM
Progman
Guest
 
Posts: n/a
Default 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, 07:55 PM
sirfunusa
Guest
 
Posts: n/a
Default Re: IP address

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.