WON Tool 1.0

1...Hostname look ups and why this works.
2...What the program does.
3...Credits


1...Hostname look ups and why this works.
----------------------------------------------------------------------------
In the windows directory there is a file named hosts.sam.  Basically this file
does the same thing a DNS server does, converts IP's to hostnames and
hostnames to IP addresses. (It's meant to be used on a network without a
DNS server such as large LAN's.)  When doing a DNS lookup windows always
checks this file first to see if it has a IP and hostname pair, then if
it can't find one calls out to you're default DNS server setup in your
networking config.

Format is <ip> <hostname>.  Example would be the first entry in hosts.sam

127.0.0.1       localhost

127.0.0.1 being the loopback address to your machine and the domain name
for it, localhost.  Another example would be:

127.0.0.1       www.mymachine.com

The idea here is to make the won authentication server addresses point not
to their servers, but back to your machine, 127.0.0.1.  When you try to
connect to a server the hostname is resolved to loopback and the connect
fails instantly.  [NOTE: This will disable the ability to join public servers
as you are required to authenticate with WON first]


2...What the program does.
----------------------------------------------------------------------------
Won tool opens c:\windows\hosts and looks for any instances of "won.net".
If it finds at least one than it assumes you want to remove the addresses
so you can play on the internet and removes them.

If it doesn't find any instances of "won.net" then it assumes you want to
play a LAN game and adds the WON server addresses bound to loopback 127.0.0.1.

[NOTE: c:\windows\hosts *MUST* exist or the program will error out.  If it
doesn't exist, copy c:\windows\hosts.sam to c:\windows\hosts (no extension)
or create a file in the windows directory named hosts with just a # in it.

3...Credits
----------------------------------------------------------------------------
Thanks to [CPF]TheHal for complaining that it was a pain to do all this by
hand every time he wanted to play on the LAN.  And no thanks to everyone
who thinks QuickBasic is old and useless.  Basic always has, and always will
rule. >:)

- Paul Tenny
Dock@werd.com
