PC Review


Reply
Thread Tools Rate Thread

ASP.Net 2.0 Webservice and IP adress

 
 
Bit Byte
Guest
Posts: n/a
 
      5th Feb 2007
I am writing a little web service - and would like to use the IP adress
of the machine that sent the request (along with other data) as part of
my security checks.

Does anyone know how I may obtain the IP address ?
 
Reply With Quote
 
 
 
 
Aidy
Guest
Posts: n/a
 
      5th Feb 2007
>I am writing a little web service - and would like to use the IP adress of
>the machine that sent the request (along with other data) as part of my
>security checks.
>
> Does anyone know how I may obtain the IP address ?


Request.ServerVariables ["REMOTE_ADDR"]

To pre-empt your next question, if the user is behind a proxy you get the
proxy address, there is no way to get the client's address.


 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      5th Feb 2007
"Bit Byte" <(E-Mail Removed)> wrote in message
news:2OKdnYgFP_Ll-(E-Mail Removed)...

> Does anyone know how I may obtain the IP address ?


As per Aidy's reply, there really is no 100% certain method of obtaining the
IP address...


 
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
Adress Bar in Explorer constantly reverts back to old adress (NOT =?Utf-8?B?aXQtc3VwcG9ydA==?= Windows XP General 7 15th Jul 2007 06:28 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft ASP .NET 1 26th Jan 2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft ASP .NET 0 26th Jan 2006 08:13 AM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft Dot NET 0 26th Jan 2006 08:12 AM
when I type an adress in adress window does not go to that adress Ken Windows XP Internet Explorer 1 5th Aug 2003 06:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:23 AM.