PC Review


Reply
Thread Tools Rate Thread

What codes grab the IP address?

 
 
JoeP
Guest
Posts: n/a
 
      8th Oct 2007
Hi All,

What codes grab the IP address?

Thanks,

Joe


 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      8th Oct 2007
"JoeP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> What codes grab the IP address?


From what...?


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

 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      8th Oct 2007
On Oct 8, 9:22 pm, "JoeP" <J...@hotmail.com> wrote:
> Hi All,
>
> What codes grab the IP address?
>
> Thanks,
>
> Joe


Request.UserHostAddress
Request.ServerVariables["REMOTE_ADDR"]

 
Reply With Quote
 
JoeP
Guest
Posts: n/a
 
      8th Oct 2007
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.


 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      8th Oct 2007
"JoeP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

>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

 
Reply With Quote
 
JoeP
Guest
Posts: n/a
 
      9th Oct 2007
Ok Thanks


 
Reply With Quote
 
JoeP
Guest
Posts: n/a
 
      9th Oct 2007
Hi Mark,

Any other ideas?

Thanks,

Joe


 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      9th Oct 2007
"JoeP" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...

>> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i grab address from sites =?Utf-8?B?VGlt?= Microsoft Outlook Discussion 0 5th Oct 2006 04:18 PM
how do i grab address from sites =?Utf-8?B?VGlt?= Microsoft Outlook Discussion 0 5th Oct 2006 04:18 PM
Envelopes - won't grab address from document =?Utf-8?B?RHVrZSBDYXJleQ==?= Microsoft Word Document Management 7 28th Jan 2005 05:32 PM
grab string after @ in email address and before .com ryan Microsoft Access 1 4th Nov 2004 08:07 PM
How to grab a video stream from an IP-address? =?Utf-8?B?Sy5ILg==?= Microsoft VC .NET 2 29th Apr 2004 04:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 AM.