Configuring The Hosts File On Windows Clients

In order to access your Wikidot server on your home network using Windows Client PCs, you will have to edit your hosts file. This file supercedes your DNS server to reconcile IP addresses.

Windows Client PCs

If you have Windows PCs on your home network and want to access your Wikidot install, you need to edit your hosts file to include the specific site(s) you want to access. You'll need to know the internal IP address of your Wikidot server (192.168.0.103 is used in the example below). On Windows PCs, the hosts file is located in the %windir%\system32\drivers\etc\ folder. The file name is simply hosts (no file extension). %windir% is typically c:\windows or c:\winnt depending on the version of Windows you are running. You can edit the file using Notepad or any other text editor.

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
# add entries for your local wikidot install
# here's some examples:
# main wikidot sites after initial install - replace the IP address with your Wikidot server's IP
192.168.0.103 www.mywikidot.com template-en.mywikidot.com profiles.mywikidot.com
# new sites you create
192.168.0.103 test.mywikidot.com anything.mywikidot.com myblog.mywikidot.com
# new tempaltes you create
192.168.0.103 template-blog.mywikidot.com
# for https (this may not be necessary)
192.168.0.103 https://www.mywikidot.com

Discuss This Article

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License