Well, I think I have the answer for you!
To access your server from within the same network, you need to add some information to your hosts file.
In Linux, the hosts file is located in... /etc/hosts
In Windows, the hosts files is located in... C:\Windows\System32\Drivers\Etc\hosts
The hosts file is a file where you can actually tell the web browser where to go when you type in a particular web address.
My web server is IP 192.168.3.2 on my network, but if you are on the outside world, you type in http://ttgale.com
However, when I type in http://ttgale.com on my computer (which is on the same network as the server) I also get my Router login page. I fixed this by doing the following:
Open your hosts file (check above for the normal locations for each OS) and add an entry that looks like this after the IP addresses that are already in there.
192.168.3.2 ttgale.com
Save it, then if you type in the host name, it should load properly now within the network. Change the IP address, and the host name (ttgale.com) to your particular settings, and everything should be fine. You will have to do it to each of the computers in your network that are to access the server using its hostname. You also need to disable it if you are outside the network, eg if you are at school wanting to use your site.
As an example, here is the contents of my /etc/hosts file to show you what it should look like:
Code:
127.0.0.1 localhost
127.0.1.1 acerm1800
192.168.3.2 ttgale.com
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Now when I type in http://ttgale.com on my computers, they load my website rather than my router page!
Bookmarks