Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Can we find out IP address? (http://www.velocityreviews.com/forums/t121800-can-we-find-out-ip-address.html)

=?Utf-8?B?QW5kcmV3?= 03-17-2006 08:25 PM

Can we find out IP address?
 
Hi, guys,

Do we have a .net function to find out what is the IP address of IIS server?

Thanks.

Winista 03-17-2006 08:25 PM

Re: Can we find out IP address?
 
See if this helps..

http://www.netomatix.com/machineip.aspx


--
Netomatix
http://www.netomatix.com
"Andrew" <Andrew@discussions.microsoft.com> wrote in message
news:6922D49F-4B44-42B0-9991-F71CFB42DF18@microsoft.com...
> Hi, guys,
>
> Do we have a .net function to find out what is the IP address of IIS
> server?
>
> Thanks.




=?Utf-8?B?QW5kcmV3?= 03-17-2006 08:47 PM

Re: Can we find out IP address?
 
thanks...

"Winista" wrote:

> See if this helps..
>
> http://www.netomatix.com/machineip.aspx
>
>
> --
> Netomatix
> http://www.netomatix.com
> "Andrew" <Andrew@discussions.microsoft.com> wrote in message
> news:6922D49F-4B44-42B0-9991-F71CFB42DF18@microsoft.com...
> > Hi, guys,
> >
> > Do we have a .net function to find out what is the IP address of IIS
> > server?
> >
> > Thanks.

>
>
>


Juan T. Llibre 03-17-2006 10:31 PM

Re: Can we find out IP address?
 
That sounds unnecessarily complicated.

Just use :

Request.UserHostAddress.ToString()
or
Request.ServerVariables("REMOTE_ADDR")



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/
===================================
"Winista" <naveenkohli@hotmail.com> wrote in message news:%23RZFWGgSGHA.5924@TK2MSFTNGP09.phx.gbl...
> See if this helps..
>
> http://www.netomatix.com/machineip.aspx
>
>
> --
> Netomatix
> http://www.netomatix.com
> "Andrew" <Andrew@discussions.microsoft.com> wrote in message
> news:6922D49F-4B44-42B0-9991-F71CFB42DF18@microsoft.com...
>> Hi, guys,
>>
>> Do we have a .net function to find out what is the IP address of IIS server?
>>
>> Thanks.

>
>





=?Utf-8?B?RWx0b24gVw==?= 03-18-2006 11:03 PM

RE: Can we find out IP address?
 
If you look for the application host, you can use

Request.Url.Host

If you look for requester's IP, use

Request.UserHostAddress (if the request comes through a proxy server, you
might need Request.ServerVariables["HTTP_X_FORWARDED_FOR"])

HTH

Elton Wang



"Andrew" wrote:

> Hi, guys,
>
> Do we have a .net function to find out what is the IP address of IIS server?
>
> Thanks.



All times are GMT. The time now is 04:39 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.