Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 9th, 2003, 08:58 AM
Authorized User
 
Join Date: Sep 2003
Location: , , United Kingdom.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default setting up PC as a web server with IIS

Hi everyone,

This is the first time I have actually set a PC as a web host before so Im not experianced at all.

I have Windows XP pro and have installed IIS and have also downloaded 98 Server Ext onto the PC. I have put 1 web page into www.root in Inetpub and when I typw in http://hostname the default page is displayed.

However, when I try to connect from another computer over the net, it states it can not find the server. Is there something else I should do on my computer to access my web pages from another PC?
Any Help will be greatly appreciated!

Cheers!

Reply With Quote
  #2 (permalink)  
Old October 9th, 2003, 10:05 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

How is this computer connected to the internet? You need to have a public IP interface on that machine otherwise no one can see it. Give us some details on how it's physically connected to the internet and we should be able to help.

Peter
Reply With Quote
  #3 (permalink)  
Old October 9th, 2003, 03:44 PM
Authorized User
 
Join Date: Sep 2003
Location: , , United Kingdom.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well i have a 64k dial up modem, do you mean I could only get to my web site If my home computer is physically logged onto the internet?

Reply With Quote
  #4 (permalink)  
Old October 9th, 2003, 03:58 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If you are developing on a machine that's connected to the internet thru a dial-up, someone could see your server. What you need to do is provide them with the IP address of your dial-up connection. Dial-ups (typically) change their IP address every time you dial in so you'll need to look it up each time. You can do this by typing "ipconfig" at a command prompt. Somewhere in the result you should see this:

IP Address. . . . . . . . . . . . : nnn.nnn.nnn.nnn

"nnn.nnn.nnn.nnn" will be your public ip address. So then someone can go to http://nnn.nnn.nnn.nnn/ and see your server. You may see that line more than once depending on how your machine is set up. If it came with a network card and that card isn't connected to a network, then that line will show up for the card as well as the dialup, but the card's IP will be bogus. All you need to do is try that address yourself and you should see your own server, if not, try the other one.

Keep in mind however that even though you have a 64k dialup, you mostly likely have about 25% of that speed going OUT. The 64k is coming IN to your machine so people browsing a site on your machine will probably get it pretty slowly.



Peter
Reply With Quote
  #5 (permalink)  
Old October 9th, 2003, 04:16 PM
Authorized User
 
Join Date: Sep 2003
Location: , , United Kingdom.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well I can see the web page (browsing via my home machine)no problem by either typing http://MyIp add or http://hostname..... but when I try typing http://nnn.nnn.nnn.nnn (subnet mask????) It doesnt work.. and they are the only 2 Ip addresses I have..

Im sure I am doing something wrong here..

Reply With Quote
  #6 (permalink)  
Old October 9th, 2003, 04:25 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

sorry, maybe I wasn't specific enough... the nnn's were just my mask to indicate numbers. if you got it working with http://youripaddress then that's what "outsiders" can use as well.

Peter
Reply With Quote
  #7 (permalink)  
Old October 9th, 2003, 04:35 PM
Authorized User
 
Join Date: Sep 2003
Location: , , United Kingdom.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah no, i knew what you ment ;), was just stating the My machine IP address works but there is another IP address shown when type IPConfig, which is called "Subnet mask" which is in the format of nnn.nnn.nnn.nnn wasn't sure what that was but it doesnt work so its not relevant.. my IP address is in the format of nn.nnn.nn.nn and works on my PC..

as I say, its just it cant find the server from another PC, wasn't sure if there was some setting somewhere that should be set so it wouldnt just work locally! Its annoying me immemsly :(

Reply With Quote
  #8 (permalink)  
Old October 9th, 2003, 04:55 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

There is another possibility. A lot of times, ISPs will block incoming requests to certain ports. So it's possible that your ISP is blocking port 80 (HTTP).

What you can try is in IIS you can configure another port. In IIS manager, go to your default website, rightclick->Properties. Go to the "web site" tab, click on "Advanced" button. You can then click "Add", leave IP Address as "All Unassigned", enter a TCP port (usually people will use 8080), then "OK" until you are back to the manager.

Now from the other PC, you enter http://youripaddress:8080/ and see what happens! If that doesn't work, try another port, the ISP may block that too, but most likely not. I have to use port 81 on my cable modem. Usually dial-up providers wouldn't block port 80 cause most dial-up users aren't likely to run a web server (but there are exceptions!)

As far as the subnet mask, you can ignore that. That's just another thing a that TCP/IP needs to work.

Peter
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
Visual Web Developer web server works NOT IIS!! glandgraf@gocfi.com Visual Studio 2005 2 January 28th, 2005 08:49 AM
Can't get IIS server test when setting up DWMX2004 richardv2 Dreamweaver (all versions) 6 June 11th, 2004 06:55 AM
setting up asp web project on a dev server ak ASP.NET 1.0 and 1.1 Basics 13 March 10th, 2004 08:47 AM



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


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