DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Sunil Menon Guest

    How to find the IP address of a client machine from a Web Page


    Dear All,
    How to find the IP address of a client machine from a Web Page? I would like
    to find out the machine name, IP address of the client machine which hs called
    my Web Page. Is this possible?

    Thanks a lot in advance.
    Many Regards
    Sunil

  2. #2
    Constance J. Petersen Guest

    Re: How to find the IP address of a client machine from a Web Page

    Hi Sunil,

    "Sunil Menon" <sunil@itb-india.com> wrote in message
    news:3d6f15c5$1@10.1.10.29...
    > How to find the IP address of a client machine from a Web Page?


    Take a look at the HttpRequest.UserHostAddress property.

    --
    Constance Petersen, DevX newsgroup section leader
    New look; new content: http://www.smartisans.com/
    Hot off the press!
    "Programming the Web with Visual Basic .NET"
    http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
    --
    Please reply in the newsgroup so everyone can benefit



  3. #3
    Sunil Menon Guest

    Re: How to find the IP address of a client machine from a Web Page


    Dear Constance J. Petersen,
    Thanks...Can I find the machine name too...:-)

    Thanks a lot in advance.
    Many Regards
    Sunil

    "Constance J. Petersen" <constance@smartisans.com> wrote:
    >Hi Sunil,
    >
    >"Sunil Menon" <sunil@itb-india.com> wrote in message
    >news:3d6f15c5$1@10.1.10.29...
    >> How to find the IP address of a client machine from a Web Page?

    >
    >Take a look at the HttpRequest.UserHostAddress property.
    >
    >--
    >Constance Petersen, DevX newsgroup section leader
    >New look; new content: http://www.smartisans.com/
    >Hot off the press!
    >"Programming the Web with Visual Basic .NET"
    >http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
    >--
    >Please reply in the newsgroup so everyone can benefit
    >
    >



  4. #4
    Constance J. Petersen Guest

    Re: How to find the IP address of a client machine from a Web Page

    Hi Sunil,

    "Sunil Menon" <sunil@itb-india.com> wrote in message
    news:3d6f61cf$1@10.1.10.29...
    > Thanks...Can I find the machine name too...:-)



    You can get the .UserHostName (DNS), but afaik, you can't get the client
    computer's machine name.

    You might look into whether there is a client-side scripting way to get it,
    which you could then pass through to the server. But, of course client-side
    scripting isn't good for public internet apps because you can't count on
    client-side scripting to be available and/or allowed by the user in every
    browser client.
    --
    Constance Petersen, DevX newsgroup section leader
    New look; new content: http://www.smartisans.com/
    Hot off the press!
    "Programming the Web with Visual Basic .NET"
    http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
    --
    Please reply in the newsgroup so everyone can benefit



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