Forum Moderators: phranque

Message Too Old, No Replies

Hosts file

         

burrows1980

5:05 pm on Jan 5, 2008 (gmt 0)

10+ Year Member



Hi,

Jim kindly replied to my thread a few days back:

[webmasterworld.com...]

I did what he said on my laptop and it worked until I switched on my pc upstairs, now im back to square one. I changed the host file on the pc to what was on my laptop and that didnt work.

It didnt work first time on the laptop, to get it to work I had to remove my IP settings and set it to Obtain IP address automatically, once doing so it worked. Did the same thing for the pc and it now doesnt work for both no matter what I do. If I go on my server I can access them on the web!

Sever IP is: 192.168.0.20
Main PC is: 192.168.0.101
Laptop is: 192.168.0.102

Server hosts file:

127.0.0.1 localhost
127.0.0.1 owner.com
127.0.0.1 www.owner.com
127.0.0.1 owner.co.uk
127.0.0.1 www.owner.co.uk
127.0.0.1 owner1.co.uk
127.0.0.1 www.owner1.co.uk

Main PC hosts file:

127.0.0.1 localhost
192.168.0.1 owner.com
192.168.0.1 www.owner.com
192.168.0.1 owner.co.uk
192.168.0.1 www.owner.co.uk
192.168.0.1 owner1.co.uk
192.168.0.1 www.owner1.co.uk

Laptop hosts file:

127.0.0.1 localhost
192.168.0.1 owner.com
192.168.0.1 www.owner.com
192.168.0.1 owner.co.uk
192.168.0.1 www.owner.co.uk
192.168.0.1 owner1.co.uk
192.168.0.1 www.owner1.co.uk

Ive tried changing the .1 to 101 or 102 but still no joy. Is there something else I need to change?

My router is set to DHCP enabled
Use Router as DHCP Server enabled :
Starting IP Address: 192.168.0.100
Ending IP Address: 192.168.0.200

Ive disabled DHCP server and still doesnt work.

Any help would be appreciated,

Thanks,

Gareth

burrows1980

5:36 pm on Jan 5, 2008 (gmt 0)

10+ Year Member



Hi,

Ive sorted it! I changed it to my server ip:

192.168.0.20

And when I saved the file went to save as... and overwrote the hosts file restarted IE and all works on both lap top and the main PC.

Gaz