If the PC you have selected to be your “Internet Node” is not already hooked to the Internet, you should take the steps many other people have to get it permanently attached with a static IP address. Because of their reasonably high speed and low-cost, I recommend interfacing through either cable or DSL with either a cable modem or DSL modem, respectively.
I recommend Windows XP as your operating system since older versions of Windows simply do not have the reliability or the security, especially with the release of SP2 for Windows XP. Windows Vista is too new, and many experts suggest waiting until late 2008 before using a Windows Vista machine as a reliable server. The last thing you want is to have your Internet node compromised and shut down because a hacker used a vulnerability in your PC.
Some experts suggest running Internet services on Linux boxes (computers) which they consider more streamlined and less prone to attack, and that is okay if you have the experience and expertise. However, my purpose here is to show how to transform an “ugly duckling PC” into an “Internet node swan,” and Windows is what most PC users are familiar with.
I leave it up to you to decide if you need Windows XP Professional over XP Home. I use both, and they both seem to operate equivalently for our Internet purposes here. XP Pro is more tweakable and has additional features, but none of that is necessary for a typical low-bandwidth node.
The absolute best way to set up Windows XP is to restore the factory image of your PC harddrive from the Restore CDs that can with your PC. If you lean more towards being a PC expert, then you can clean up your PC, but please be thorough.
To clean up your PC, first remove any software you don’t want compromised, any financial spreadsheets, documents, etc. Then eliminate all extraneous software that you won’t be using through their Uninstall procedure or Add or Remove Programs in your PC’s Control Panel. Run ScanDisk, Defrag, and scan all of your drives with your antivirus software after making sure it’s virus list is up to date. You should also run anti-spyware software to make sure that your PC hasn’t already been compromised by hackers.
Once you have your Internet Node PC cleaned-up, you can verify your Internet speed to see if it is going to be able to handle the bandwidth you will require. A good rule of thumb is… If your bandwidth seems low, you might review some higher bandwidth services from your telephone or cable companies.
The next stop is to figure out what to do about your domain name, e.g. “yourdomain.com”. If you already have a domain name, then you will inform your current registrar about your IP address change, so that they can change your DNS Record. (If they cannot because they do not provide that service, you may have to switch registrars.)
What’s all that about the DNS Record? Well, the global Internic Registry used for decoding domain names into IP addresses does not, as some might assume, contain a direct pointer to your IP address but instead a pointer to a DNS Record that has the ability to direct the different services and sub-domains of your domain to unique IP addresses. Typically, your registrar maintains your DNS record for you and haven’t had to deal with it until now. Live and learn! Some registrars allow you to create your own DNS Record but will also do it for you through their customer support. If you want to learn how DNS Records work, it is certainly educational from a “how does the Internet work” perspective, but not a requirement for our task at hand.
If you do not have a domain name, now is the time to get one. First, choose a domain name you like and that you think will be easy for others to remember and use. Then, sign-up your new domain using one of the registrars that are authorized to provide domain names. We recommend assign a domain name that ends with the top level domain “.com” unless you have grand reasons for using another (e..g. non-profits typically use “.org”). If your domain is already taken, the registrar will let you know and offer alternatives. You can go with one of those or iterate and pick another domain name to try and register.
There are many low-cost registrars that will sign-up a new domain name for under $15 a year, so don’t get suckered into paying $25 or even $35 a year. The last registrar I used was aplus.net which charged me $11.90 for a one-year registrar of a “.com” domain including DNS service. Note if the registrar you use changes extra for DNS service (or even provides it – some registrars do not) as you will need it in order to have your registrar point your domain to your IP address. Normally, if they host your site at one of their own IP addresses which by the way is a huge profit margin for them – we are bypassing this typical configuration.
Okay, so you have registered or transferred your domain or changed your domain’s DNS Record to that you can . Now the bad news: It is going to take up to 48 hours for your change to propagate through the DNS System so, when someone, including yourself, types in “www.yourdomain.com” in a browser, it is directed to your new IP address. Do you now have to wait for a day or two until you can access your services?
Checking and Setting Up the “hosts.” File
The answer is a definitive “no,” and you can keep going in setting up your Internet node even which your domain name addressing is in transition. First off, you can simply type in your Internet Node’s IP address and service port number to get to a service. But don’t do this yet as we haven’t installed and activated any services yet – we are saving that for the next installment.
Also, you can edit a file on one of your local network PCs that tells your PC to go locally, even to itself, when it sees particular domain names. This local redirection will work also on the Internet node PC you are setting up. This file is called the “hosts” file (actually the file name is exactly “hosts.” with a period and a blank extension) and is located somewhere in one of your Windows folders, somewhere in “c:\windows\…”.
You should use Window’s find feature to locate this file – search for the file “hosts.” starting in “c:\windows\” and include subfolders. On my Windows XP Home PC, the file is in my “c:\windows\system32\drivers\etc\” folder. Open it in Notepad or Wordpad. Wordpad is preferred since it remembers previously opened files in case you have to reedit.
There should be many lines starting with “#” that explain in a semi-obtuse way the use of the hosts file. Basically, all you need to do here is add a couple of line in the following format:
The IP address “127.0.0.1″ is one that means “this PC” and reroutes the specific domains right back to the current PC without attempting to go out over the Internet and resolve the domain name, which, as we know, is in transition. So, at least for the next few days, we will be working with this redirection and you can continue to set up your Internet services and test them out. Then, once your domain’s URL is relocated, your Internet services will be all ready to go without delay.
If, in your hosts file, you already have a line:
that is fine and you can leave that line there as well.
While we are on this topic, let’s do a little security review. Any other entries, lines that begin with an IP address (without the ‘#’) may be a hijack by a virus, spyware or hacker, so if you see anything that looks suspicious, you might want to check it out and delete it. For example,
is very likely a hacker intercepting the citibank.com domain and redirecting it to a phishing site in order to steal your citibank online ID and passcode. If you see anything like this, your PC was at least at one point compromised and may still be, so rerun all of your antivirus and anti-spyware software first making sure you have the latest updates. Even better, use alternate software to evoke a wider gamut of detection.
Next Up: Free Internet Node, Part 3 – First Free Internet Service: A Website