Groups | Blog | Home
all groups > asp.net > january 2004 >

asp.net : Checking IP


Hai Nguyen
1/9/2004 11:45:30 PM
Hi everyone

I'm making a page which needs to identify users comming from a certain IP
address. I've never have experience with this.
Would anyone give me any hints?

Thanks

Steve C. Orr [MVP, MCSD]
1/10/2004 12:50:49 AM
Request.ServerVariables("REMOTE_ADDR")
This should give you the IP address of the computer making the request.

Alternately, you can configure IIS to permit access to your web site only
from specific IP addresses.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



[quoted text, click to view]

Felix Wang
1/10/2004 2:13:48 PM
You may use the HttpRequest.UserHostAddress

--
Regards,

Felix Wang

[quoted text, click to view]

AddThis Social Bookmark Button