?
Solved

After creating a simple web page - how to access it from remote computer

Posted on 2008-11-01
24
Medium Priority
?
195 Views
Last Modified: 2013-12-17
Greetings:

I went through the steps outlined for Creating ASP.NET Web Application Root Directories in IIS:

http://msdn.microsoft.com/en-us/library/ha2y9493(VS.80).aspx

After this I launched VS 2005 and created a new Web site:  File\New\Web Site

On the page I entered 'Hello World', compiled it and ran it locally with no problems.  What then, is necessary to access this page from another computer - what is the link?

Thanks
0
Comment
Question by:John500
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 12
  • 12
24 Comments
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22857468
Hi John;

What is needed is the IP Address of your computer or the computer you installed IIS and the web app. So for example if your IP Address is 192.168.128.101 then the URL for you web page would be http://192.168.128.101/VirtualDirName

Fernando
0
 

Author Comment

by:John500
ID: 22857511
Fernando,

Thanks.  I tried this but I'm getting:

"The page cannot be displayed"

Any ideas on how to troubleshoot this.  It must be something simple, yes?

I did a little reading and I saw this:

*  Set Anonymous access on
*  Go into the NTFS filesystem and set EXECUTE (Change) permissions on the folder for the IUSR account

I know Anonymous access is on but what about that item, is this necessary?
0
 

Author Comment

by:John500
ID: 22857520
... what about that second item, is that necessary - and how is it done?

Under the 'Directory' tab of the properties for the virtual directory, where should the content come from - the designated directory - right?

Below that I have:

Read, log visits, Index this resource
Execute Premissions:  Scripts only

Thanks

0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

Author Comment

by:John500
ID: 22857580
Also, I have nothing in the designated LogFiles directory indicating any attempt was made to access the site....
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22857718
Hi John500;

I am not an expert on web development, with that said I did create a small web app and then load it into my browser using its URL as I stated in my first post but also adding the Web Page to be loaded as follows

http://192.168.123.101/WebApplication2/WebForm1.aspx

Attached is the Directory Properties  gotten through the Computer Management Window:

One way to access the Computer Management Window:

  1. Right click on the My Computer on the desktop and select Manage from the Context menu
  2. Open the Services and Application node
  3. Then expand Internet Information Services
  4. Expand Web Site
  5. Select Default Web Site
  6. In the right pane of the window select your virtual directory and right click on it and select Properties
The error you got is so general that it is useless to track down the problem.

Fernando

SP32-113.jpg
0
 

Author Comment

by:John500
ID: 22858331
Did you say you were able to load your project from a second computer?  Take a look at the shots below.  I noticed your properties only use the 'Directory' tab where mine have the 'Virtual Directory' tab.

I got rid of all the files in the Documents tab except for one - Default.aspx

I think the 'Virtual' thing is causing problems.
webpage.JPG
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22858677
Hi John500;

I told you I was not a Web Developer. I know just enough about Web Dev to be dangerous.

I created a Virtual Directory and pointed it to the location on my file system where the web page is located and still able to connect to it.

SP32-114.jpg
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22858686
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22858715
Hey John500;

I noticed that there is a difference between you Virtual Directory and the one I have and that is In the Application Settings section Application Name: is empty on yours try setting it to HomeWebApp .

Fernando
0
 

Author Comment

by:John500
ID: 22858904
Thanks again for the input.  

Still no change.  I'm wondering if the router has someting to do with it.  Did you ever need to configure the router for the machine that displays the Web page?  Maybe not for Web issues but for other reason?
0
 

Author Comment

by:John500
ID: 22858996
Also, if I use this link:

http://192.168.1.103/HomeWebApp/default.aspx

I am able to connect to the page locally.  However, if I use the same link on another computer, it does not work.  Thus, in theory I'm wondering how my link would be found in the the vast Internet world?

Surely there has to be another IP address out there with 192.168.1.103  and even if it doesn't end with the same web page, it still seems like the odds of success are low.

If this is a real web location, it didn't work for me:

http://192.168.123.101/WebApplication2/WebForm1.aspx

Your thoughts?  Thanks
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22859080
Hi John500;

Well having a router in the mix does change things. The IP Address that you are using is a private IP address located on the Local Area Network and not the Public Network. Any IP address in the range 192.168.0.0     -   192.168.255.255 are reserved for private network such as being behind a router. You need to use the public IP address so that people on the public network can access the web site. With the router I have I can login to it by using the IP address assigned to it by the manufacture which in my case is http://192.168.123.254 then a web page from the router is displayed and I can find the Public IP address on one of the pages. You need to do the same thing, login into the router and find the Public IP Address and use that for the URL.

Fernando
0
 

Author Comment

by:John500
ID: 22859395
Fernando,

Appreciate the info once again.  Moving ahead slowly....

Below is a picture of my router once I'm logged in.  Which menu item would you guess is the correct one which provides a public IP?  I looked around but I must be missing something.

It would seem with one of these menu options I could map the web site name (HomeWebApp/default.aspx) to the router IP and somehow redirect to the the IP address behind the router - yes/no?

Thanks
router.JPG
0
 

Author Comment

by:John500
ID: 22859421
... also, if I use the 'Internet IP Address' (identified in the Status menu)  for the URL as you suggested, this results in a request to login to the router.

Looks like I need some sort of DNS configuration here....
0
 

Author Comment

by:John500
ID: 22859456
Here we go, Applications & Gaming:
----------------------------------------------------------------------------------------
Port Range Forwarding can be used to set up public services on your network. When users from the Internet make certain requests on your network, the Router can forward those requests to computers equipped to handle the requests. If, for example, you set the port number 80 (HTTP) to be forwarded to IP Address 192.168.1.2, then all HTTP requests from outside users will be forwarded to 192.168.1.2. It is recommended that the computer use static IP address.
----------------------------------------------------------------------------------------

This is exactly the case along with these instructions:

1)  Enter an Application name of the service you want to forward.  
2)  Enter the Port Range Start and End of the service you want to forward.
3)  Select the protocol used by the services.
4)  Enter the IP Address of the server that you want the Internet users to access.  When input the IP address, you should check if it's valid!
The zero IP address(192.168.1.0) can't be acceptable.
The device's IP address(default 192.168.1.1) can't be acceptable.
The device's Broadcast address(default 192.168.1.255) can't be acceptable.
The IP address is in different Subnet with device's LAN IP can't be acceptable.
5)  Select Enabled for that entry.
6)  Click the Save Settings button to save the settings.

However, after all this is done we're still back to the question - what link would I use to access this from the outside world?

Thanks
0
 

Author Comment

by:John500
ID: 22859487
I tried the settings seen in the picture below but I wasn't sure about the 'Application' field or if the ports were done correctly.

Any word here?
forwarding.JPG
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22860215
You really do not want to do port forwarding.

In the image below you need to find something that states DHCP Client and the IP associated with that item. Anything with 192.168.XXX.XXX is on the wrong side of the router you need the address on the other side / public side.

SP32-117.jpg
0
 

Author Comment

by:John500
ID: 22861817
>>  You really do not want to do port forwarding

Any particular reason?  It seems like this is the very scenario the 'Application & Games' menu addresses.

I can surely access the 'DHCP Client Connected' IP, but as I say, if I use that on a 2nd computer as part of the link:

http://67.54.16.236/HomeWebApp/default.aspx

This won't make a connection to the Web page...

Are you able to access your web page with a *2nd computer* using the above format like this:

http://67.8.48.234/WebApplication2/WebForm1.aspx
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22862105
Sorry I do not know how much more help I can be. This did work for me yesterday but not today:

http://67.8.48.234/WebApplication2/WebForm1.aspx             

I said I know enough to be dangerous. I will keep trying but with so many options in Web configuration may not get it back.
0
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 2000 total points
ID: 22862302
Hi John500;

I found my problem. In my router I had what US Robotics calls a Virtual Server. When the public network makes a call to your IP Address the Virtual Server maps the IP Address on the public network with the IP Address on the private network that host the web site. I had it disabled, once I re-enabled it, it worked from the outside world. You need to check your router which has the same function.

Fernando
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22868077
Did you have any lock?
0
 

Author Comment

by:John500
ID: 22868158
No luck.  I found nothing that used the term 'Virtual Server.  I need to get some input from the router support folks.  

The ISP automatically enabled port 80 on the modem when I told them I would be hosting a web page.  I didn't have the time to question this and therefore need to know why they did this when I have a router.

I'll close this out.  I appreciate all your help !!
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22868574
Hi John500;

I have downloaded the LinkSys Users Guide and found the section that shows how to setup the router to pass the Web Request to the server on the router. It is located on page 44 question 7, "I need to set up a server behind my Router." On LinkSys they do use "Applications & Gaming => Port Range Forwarding tab" although on US Robotics they use a Virtual Server.

I have attached the users guide below. It may not match your router exactly but the steps should be the same.

Let me know if it worked out for you.

Good Luck;
Fernando
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 22868641
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses

770 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