Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 28th, 2012, 06:28 PM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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..
Reply With Quote
  #2 (permalink)  
Old August 28th, 2012, 07:05 PM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #3 (permalink)  
Old August 28th, 2012, 07:26 PM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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..
Reply With Quote
  #4 (permalink)  
Old May 24th, 2013, 07:14 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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..
Reply With Quote
  #5 (permalink)  
Old June 29th, 2013, 04:13 AM
Authorized User
Points: 51, Level: 1
Points: 51, Level: 1 Points: 51, Level: 1 Points: 51, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.