Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 28th, 2012, 06:28 PM
Registered User
 
Join Date: Aug 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Chapter 19 localhost issue

Hi Imar,

I made it through to the end to chapter 19!
Everything went well and works all right when I type "localhost" into the browser bar.
My question was:
I want to retrieve/browse my website from another computer, be it on my local network or from a remote network. typing localhost doesn't work (obviously) nor does the direct subnet address (10.0.0.3)

I am unfamiliar with IIS7 and how to do this and the chapter didn't cover it. I am still searching for the way to do it.
Thanks.

Last edited by smloomis; August 28th, 2012 at 07:03 PM..
 
Old August 28th, 2012, 07:05 PM
Registered User
 
Join Date: Aug 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out.

My windows firewall was blocking other computers, local and remote from accessing IIS on my machine. When I enabled access, I could then type 10.0.0.3 and see my website from another computer, yay!

All I have to do now is figure out how to access the site from another network, not my just my local LAN subnet.
 
Old August 28th, 2012, 07:26 PM
Registered User
 
Join Date: Aug 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok my new question now is if my home network WAN ip is 98.225.45.196 and my subnet ip that IIS hosts my website is on 10.0.0.3,

If I am on a remote network, what do I type into the browser to get my website?

I figured it out again!

Entering in 98.225.45.196 in my browser didn't work. That is actually the WAN ip of my router.
All requests for http to the IIS come in through port 80.
The solution was to enable port forwarding through my router configuration to specifically tell all requests for http on port 80 to go the the subnet ip address 10.0.0.3, and it worked, yay!

no more questions for now.

Last edited by smloomis; August 28th, 2012 at 08:29 PM..
 
Old May 24th, 2013, 07:14 PM
Registered User
 
Join Date: May 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can I access this sample site with domain name instead of hard code by ip address. (replace http://192.168.1.12:81/SiteName with www.SiteName.com)?

Also I cannot access it from outside of my home network even though I set up the port forwarding on my router (Actiontec V1000H) and check the port 81 was opened. Anybody can help me out?

Thanks a lot.

Last edited by DavidYang; May 24th, 2013 at 07:48 PM..
 
Old June 29th, 2013, 04:13 AM
Authorized User
 
Join Date: May 2013
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Default NAT

I think you have to register the name first, so the NAT (Network Adress Translation) routers know your IP is connected to the specific name.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 19 RuthL BOOK: JavaScript 24-Hour Trainer 3 July 10th, 2012 07:42 AM
Chapter 19 Exercise 4 leodemario BOOK: Beginning Visual C# 2010 1 July 23rd, 2011 11:53 AM
Chapter 19 johanyu BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 November 12th, 2007 10:50 AM
Chapter 19 XML kistaw BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 November 12th, 2007 03:56 AM
Chapter 19 johanyu BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 October 10th, 2004 11:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.