-
how to find out client's IP or even domain name
I need to find out IP adderss or even domain name of a client to show him
different content. How can I do that?
-
Re: how to find out client's IP or even domain name
Look at the HTTP REMOTE_HOST or REMOTE_ADDR values. In ASP, you can retrieve
these through the Request.ServerVariables collection. Note that using the
collection is a relatively slow operation, so you should avoid using it on
every page if possible.
Russell Jones
Sr. Web Development Editor
DevX.com
"alko" <just-alko@usa.net> wrote in message news:3a77e495@news.devx.com...
>
> I need to find out IP adderss or even domain name of a client to show him
> different content. How can I do that?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks