Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 13th, 2010, 04:59 PM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default Deployment: cannot connect remotely

Hi, this is an extension of my question posed in this thread. I'm posting this here because I feel my question is creeping beyond the scope of Imar's book.

I got my site to work when I type in "localhost" or my IP address into the browser. However, the site does not work from other computers. I went to a friend's house and typed in http://myIPaddress and it acted like the site did not exist. I thought maybe it was a firewall thing, so I enabled http to pass through my Windows firewall, but that did not fix the problem. Any idea what I may have missed? Thanks,

-Chris
  #2 (permalink)  
Old October 13th, 2010, 06:18 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,044
Thanks: 80
Thanked 1,580 Times in 1,557 Posts
Default

Hi there,

Your PC probably doesn't have your public IP address, but your router has. You may need to configure your router to forward HTTP traffic (port) to your local machine.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
caiman (October 14th, 2010)
  #3 (permalink)  
Old October 14th, 2010, 02:15 AM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Thanks, that was it. Everyone else can now see my website using the public IP.

However... I myself cannot view it. When my friend across town types in the IP he sees my site, but when I type in the IP on my computer (where it's being hosted) I get a "webpage not available" error. Any idea why?
  #4 (permalink)  
Old October 14th, 2010, 04:17 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,044
Thanks: 80
Thanked 1,580 Times in 1,557 Posts
Default

I think your router doesn't route internal requests through the "http forwarding rules" and thus never reaches your own machhine. But localhost works, right?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #5 (permalink)  
Old October 14th, 2010, 10:53 AM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Yep, localhost works.

Any way around this? It's not a very big deal, more of a curiosity.

-Chris
  #6 (permalink)  
Old October 14th, 2010, 11:18 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,044
Thanks: 80
Thanked 1,580 Times in 1,557 Posts
Default

Not sure. You may be able to configure this in your router....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #7 (permalink)  
Old October 14th, 2010, 06:26 PM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Cool, I will see what I can figure out.

As always, thank you for your help.

-Chris
 


Thread Tools
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
CAN NOT CONNECT TO SQL SERVER 2000 REMOTELY charlietritran SQL Server 2000 9 December 22nd, 2006 04:14 PM
How to connect an Access DB remotely? frossie Access 1 June 14th, 2006 09:07 AM
Connect remotely to SQL server rylemer .NET Framework 2.0 1 December 6th, 2005 03:16 AM
How to connect to a datasource remotely jolo98 General .NET 3 November 18th, 2004 11:11 AM
go to new record remotely stoneman Access VBA 0 February 8th, 2004 07:40 PM



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


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