Display IP Address of Remote user on page in ASP.NET 2.0

Posted on 2006-05-15
Last Modified: 2012-06-27
I am looking to display the IP Address on the page of the person surfing my site in ASP.NET 2.0. Some of these things are new to me. I am getting lost in translation from PHP to ASP.NET 2.0 in Visual Studios 2005.
 Dim myIPAddress As New ViewStateException
    If myIPAddress.RemoteAddress = "" Then
        Response.Write("Nothing to Show")
    End If
Question by:iamtgo3
    LVL 12

    Accepted Solution

    LVL 1

    Author Comment


    Thanks found two way actually.


    Here is a different question

    In PHP you can get the HTTP Root like this. How would you translate that to ASP.NET?
    <a href='<?PHP $_SERVER['HTTP_ROOT'] ?>/sitemap.php'>Site Map</a>

    LVL 12

    Expert Comment

    Don't quite understand what HTTP_ROOT is.

    Are you looking for this: Request.ApplicationPath.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now