Information Technology Solutions, Answers and Experts
Write an Article Ask a Question

Can we find out IP address?

Andrew
P: n/a
Andrew
Hi, guys,

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

Thanks.
Mar 17 '06 #1

4 Replies



Winista
P: n/a
Winista

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...[color=blue]
> Hi, guys,
>
> Do we have a .net function to find out what is the IP address of IIS
> server?
>
> Thanks.[/color]


Mar 17 '06 #2

Andrew
P: n/a
Andrew

re: Can we find out IP address?

thanks...

"Winista" wrote:
[color=blue]
> 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...[color=green]
> > Hi, guys,
> >
> > Do we have a .net function to find out what is the IP address of IIS
> > server?
> >
> > Thanks.[/color]
>
>
>[/color]
Mar 17 '06 #3

Juan T. Llibre
P: n/a
Juan T. Llibre

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...[color=blue]
> 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...[color=green]
>> Hi, guys,
>>
>> Do we have a .net function to find out what is the IP address of IIS server?
>>
>> Thanks.[/color]
>
>[/color]



Mar 17 '06 #4

Elton W
P: n/a
Elton W

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:
[color=blue]
> Hi, guys,
>
> Do we have a .net function to find out what is the IP address of IIS server?
>
> Thanks.[/color]
Mar 18 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.



Didn't find the answer to your question? Post your ASP.NET question on Bytes

You can also browse similar questions: ASP.NET

Get ASP.NET Help

Get ASP.NET help from a network of professionals.

Post your Question » Over 331,212 Members | 3356 Online