Connecting Tech Pros Worldwide Help | Site Map

Client IP Address or PC Name

Homer
Guest
 
Posts: n/a
#1: Nov 22 '05
How can I obtain the client IP address or machine name from within an asp.net
application? I want to use this information to determine where to redirect a
web page.

Many thanks

Homer
Homer
Guest
 
Posts: n/a
#2: Nov 22 '05

re: Client IP Address or PC Name


I am using response.redirect with a target address depending on the subnet
that the clients machine is located in. Apologies for adding confusion, as
this part is pretty much irrelevant to my question.

The important question is it possible to get the ip address of the clients
machine and if so how?

Many thanks

Homer

"Cor Ligthert" wrote:
[color=blue]
> Homer,
>[color=green]
> > How can I obtain the client IP address or machine name from within an
> > asp.net
> > application? I want to use this information to determine where to redirect
> > a
> > web page.
> >[/color]
> I do not understand what you mean with redirect a webpage, why do you need
> for that a client IP adres?
>
> Cor
>
>
>[/color]
Cor Ligthert
Guest
 
Posts: n/a
#3: Nov 22 '05

re: Client IP Address or PC Name


Homer,

I assume, that this is the page you are looking for, the actual IP adress of
a computer can be very rare to find because of proxies, local networks,
firewalls, etc.

http://msdn.microsoft.com/library/de...rvariables.asp

I hope this helps?

Cor


Cor Ligthert
Guest
 
Posts: n/a
#4: Nov 22 '05

re: Client IP Address or PC Name


Homer,
[color=blue]
> How can I obtain the client IP address or machine name from within an
> asp.net
> application? I want to use this information to determine where to redirect
> a
> web page.
>[/color]
I do not understand what you mean with redirect a webpage, why do you need
for that a client IP adres?

Cor


Homer
Guest
 
Posts: n/a
#5: Nov 22 '05

re: Client IP Address or PC Name


I am using response.redirect with a target address depending on the subnet
that the clients machine is located in. Apologies for adding confusion, as
this part is pretty much irrelevant to my question.

The important question is it possible to get the ip address of the clients
machine and if so how?

Many thanks

Homer

"Cor Ligthert" wrote:
[color=blue]
> Homer,
>[color=green]
> > How can I obtain the client IP address or machine name from within an
> > asp.net
> > application? I want to use this information to determine where to redirect
> > a
> > web page.
> >[/color]
> I do not understand what you mean with redirect a webpage, why do you need
> for that a client IP adres?
>
> Cor
>
>
>[/color]
Cor Ligthert
Guest
 
Posts: n/a
#6: Nov 22 '05

re: Client IP Address or PC Name


Homer,

I assume, that this is the page you are looking for, the actual IP adress of
a computer can be very rare to find because of proxies, local networks,
firewalls, etc.

http://msdn.microsoft.com/library/de...rvariables.asp

I hope this helps?

Cor


Homer
Guest
 
Posts: n/a
#7: Nov 22 '05

re: Client IP Address or PC Name


Thanks very much Cor. This was exactly what I needed.

Homer

"Cor Ligthert" wrote:
[color=blue]
> Homer,
>
> I assume, that this is the page you are looking for, the actual IP adress of
> a computer can be very rare to find because of proxies, local networks,
> firewalls, etc.
>
> http://msdn.microsoft.com/library/de...rvariables.asp
>
> I hope this helps?
>
> Cor
>
>
>[/color]
Homer
Guest
 
Posts: n/a
#8: Nov 22 '05

re: Client IP Address or PC Name


Thanks very much Cor. This was exactly what I needed.

Homer

"Cor Ligthert" wrote:
[color=blue]
> Homer,
>
> I assume, that this is the page you are looking for, the actual IP adress of
> a computer can be very rare to find because of proxies, local networks,
> firewalls, etc.
>
> http://msdn.microsoft.com/library/de...rvariables.asp
>
> I hope this helps?
>
> Cor
>
>
>[/color]
Closed Thread


Similar .NET Framework bytes