IP address and localhost (

Posted on 2009-12-26
Last Modified: 2012-05-08
I am using Windows Vista.  I am using a ASP.Net to create a web site.  I can access it locally using:

However, if I use the actual IP address (

I got a page saying the page is broken.

The content for Default.asp is shown below.

I am sitting behind a router with the router configure to allow internet access via the port number (54840) both TCP and UDP

What do I do to access the Default.aspx via internet?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<%@ Register assembly="OPCWebControls" namespace="OPCWebControls" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="" >

<head runat="server">




    <form id="form1" runat="server">



        <span lang="en-us">Hello to the ASP.Net World</span></div>








Open in new window

Question by:tommym121
    LVL 35

    Expert Comment

    by:torimar is not your internet address, it's the LAN address for your PC that allows the router and other computers on your network to address and communicate with your machine.

    You will find the actual internet IP by checking your router settings, or by visiting a page like
    LVL 35

    Accepted Solution

    What are you trying to achieve?
    Do you simply wish to test your page, or do you wish to host a website privately which can be reached from the internet?

    In the latter case, please note that ":54840" is not the usual port for websites, it's 80 or 8080. If you are running a webserver (like IIS on Windows) - which you will have to in order to serve the page -  you shouldn't have to specify a port at all, since webservers by default use port 80 for serving.

    Author Closing Comment

    my IIS is not being setup

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    The first time you look at a web page and its source code, you are probably a little intimidated by the use of symbols and jargon that really looks foreign to you. You might not even know where to start to begin learning what it all means. That’…
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    755 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

    21 Experts available now in Live!

    Get 1:1 Help Now