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


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

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

  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



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center