I'm a developer, but never done any web development. I want to start playing
around and set my XP Pro machine up as a web server. I'll set up IIS and the
virtual root stuff, but my questions are:
Running a IIS service on XP Pro and allowing public access is asking for
trouble - not because IIS on XP isn't secure, but, since you're asking
this question (and it's a good question) you show that you don't know
enough about security to do so.
In locking down a IIS server for public access there are a LOT of
changes that make your workstation less usable and not desirable for
local use. There are many services and security changes that will make
your machine less than friendly for your normal use - at least if you
lock it down properly.
1) How do I open up a port (or whatever, terminology is not my strong suit)
throught the XP firewall?
In XP SP2, and you should be running SP2, just open the firewall and
follow the directions to open port XX where XX is the port you are
running your web server on. Keep in mind, if you want to run it on
Workstation you should at least not run it on the standard web ports
that bots scan for - I would suggest that you run it on port 40000 or
something strange like that. While it won't keep people out, it does
eliminate some of the background chaff that you would see on 80.
2) Any other precautions to take when doing this?
Yes, lock down the computer so that it's almost not usable.
Setup authentication so that only a authenticated user can access the
site - make sure that all accounts have STRONG PASSWORDS. This means
that once people find your site they will be prompted to enter a
workstation user name and password before they can even see the site -
one more level to stop that crackers.
3) If I don't have a domain name, just use my IP (i.e.
http://iphere/website)?
From inside the network it would be:
http://localhost:portXX for the root site
http://localhost/virtualsite:portXX for virtual directories off root
for external access it would be:
http://ipaddress:portXX
http://ipaddress/virtualsite:portXX
If you use port 80, then you can leave "

ortXX" out completely.
4) I also have to go through a LinkSys wireless router. What do I open up
here?
You have to FORWARD TCP 80 to the internal IP of the workstation.
Yes, don't do this until you completely understand security, this is the
fastest way to compromise your machine.