[thelist] paging all iis networking studs

Seth Bienek - Web Consultant sbienek at acep.org
Tue May 23 20:55:22 2000


Hi Jeff,

What you can do is assign multiple IP addresses to the NIC card, then assign
a domain to each NIC in the hosts file; you'll also have to set up your
webserver to run on multiple IP addresses:

This should get you started:
Right-click "My Network Places"
Click "Properties"
Right-click "Local Area Connection"
Click "Properties"
Select "Internet Protocol (TCP/IP)", Then click "Properties"
Select "Use The Following IP Address"

Then fill out the little form:
IP Address: 192.0.0.1
Subnet Mask: 255.255.255.0
Default Gateway: (doesn't matter, leave blank)

Then Click "Advanced"...
Click "Add"...
Add as many other IP Addresses as you want:
IP Address: 192.0.0.2
Subnet Mask: 255.255.255.0
etc..  

Leave Default Gateways alone.  When you are done adding IP addresses, Click
"Ok".

Now that your NIC card is bound to multiple IP addresses, let's set up your
hosts file to associate those with domain names.  By adding entries to your
hosts file, Windows will cross reference those names without ever even
trying to use DNS, so you shouldn't need a dial-up or anything.

Click "Start", Then "Run", then type the following command line:
notepad C:\WINNT\system32\drivers\etc\hosts

This will open your hosts file.

Now, on the last line, type the IP address, the domain you want to associate
it with, and a brief description, each seperated by a tab, like this:
192.0.0.1	www.domain1.com	This is the first demo domain.

Then add all the others, just like it, each on its own line.  When you're
done, it will look like this:
192.0.0.1	www.domain1.com	This is the first demo domain.
192.0.0.2	www.domain2.com	This is the second demo domain.
192.0.0.3	www.domain3.com	This is the third demo domain.
192.0.0.4	www.domain4.com	This is the fourth demo domain.
192.0.0.5	www.domain5.com	This is the last demo domain.

It's ok if they don't line up, as long as the domain name is seperated from
the IP.

Now all you have to do is bind your webserver to these multiple IP
addresses.  I'm not running a webserver at home right now, so I can't walk
you through the steps, but it shouldn't be too involved.

One caveat of this is that you will have to undo all of these changes before
you can plug back into the network (I think).

Sorry for the winded explanation y'all!  Let me know if I was way off base
on anything, or if there's a less involved way to do this!  :)

Take Care,

Seth

> -----Original Message-----
> From: thelist-admin@lists.evolt.org
> [mailto:thelist-admin@lists.evolt.org]On Behalf Of Jeff Howden
> Subject: [thelist] paging all iis networking studs
> 
> hey all,
> 
> i've got a quick question here that i'm hoping someone can 
> help answer.
> we're sending one of our employees with a laptop to do a 
> presentation where
> they will not have any network connections.  so, we've copied all the
> associated files for the demo websites along with the database to the
> laptop.  here comes the tricky part.
> 
> we are demoing more than a single site.  unfortunately, the 
> behavior of the
> site, the look and feel, and content that are delivered are 
> all dependent on
> the domain name that's requested.  therefore, we need some 
> way to map more
> than a single domain name to the internal ip address.   i've 
> looked into
> using the hosts file with the following entries, with no results:
> 
> 127.0.0.1       www.domain1.com
> 127.0.0.1       domain1.com
> 127.0.0.1/d2  www.domain2.com
> 127.0.0.1/d2  domain2.com
> 127.0.0.1/d3  www.domain3.com
> 127.0.0.1/d3  domain3.com
> 
> it doesn't seem to like anything after the ip address.  it 
> will pull up the
> appropriate file when requesting domain1.com, but won't find 
> anything when
> requesting domain2.com or domain3.com.
> 
> the machine in use is running win2k professional (not server)