What codes grab the IP address?  
Author Message
AngieBee





PostPosted: Mon Oct 08 12:27:46 PDT 2007 Top

ASP.Net >> What codes grab the IP address?

Hi All,

What codes grab the IP address?

Thanks,

Joe

Web Programming184  
 
 
Mark





PostPosted: Mon Oct 08 12:27:46 PDT 2007 Top

ASP.Net >> What codes grab the IP address?


> What codes grab the IP address?

From what...?


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
 
Alexey





PostPosted: Mon Oct 08 12:31:36 PDT 2007 Top

ASP.Net >> What codes grab the IP address?
> Hi All,
>
> What codes grab the IP address?
>
> Thanks,
>
> Joe

Request.UserHostAddress
Request.ServerVariables["REMOTE_ADDR"]

 
 
JoeP





PostPosted: Mon Oct 08 14:39:42 PDT 2007 Top

ASP.Net >> What codes grab the IP address? I have a page where the user enters details like first , last name and need
to record the IP address from where the user came from.


 
 
Mark





PostPosted: Mon Oct 08 15:32:37 PDT 2007 Top

ASP.Net >> What codes grab the IP address?


>I have a page where the user enters details like first , last name and need
>to record the IP address from where the user came from.

OK. Alexey's given you the code for this.

However, be aware that you cannot rely on this at all, as an IP address is
extremely simple to spoof...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
 
JoeP





PostPosted: Tue Oct 09 06:32:56 PDT 2007 Top

ASP.Net >> What codes grab the IP address? Ok Thanks


 
 
JoeP





PostPosted: Tue Oct 09 06:47:45 PDT 2007 Top

ASP.Net >> What codes grab the IP address? Hi Mark,

Any other ideas?

Thanks,

Joe


 
 
Mark





PostPosted: Tue Oct 09 08:45:31 PDT 2007 Top

ASP.Net >> What codes grab the IP address?


>> However, be aware that you cannot rely on this at all, as an IP address
>> is extremely simple to spoof...

> Any other ideas?

???

If somebody spoofs their IP address, there's nothing you can do about it...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net