DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    alko Guest

    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?

  2. #2
    Russell Jones Guest

    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?




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links