Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: problem hosts file

17 Mar 2012   #1
jackmaessen

windows 7 Ultimate EN 64 bit
 
 
problem hosts file

Hello,

I am hosting a weberver on a windows 7 pc.
It's ip address: 192.168.0.100
Mijn domainname is: (example) www.mysite.nl
If i type from another pc on my local network in the url of the browser: www.mysite.nl, he can not find the indexpage of the webserver
I have to type my local ip address from the pc where the server is running from to view my index page: 192.168.0.100 (http://192.168.0.100)
Only then he shows me the indexpage

I was looking to the hosts file in system32/drivers/etc/hosts, and i added the last rule : 192.168.0.100 www.mysite.nl

My host file looks like this:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
192.168.0.100 www.mysite.nl

Computer reboot, but still when i type the address: www.mysite.nl ; he says: unable to connect
What have i done wrong?
Why is this still not working?
He knows when i visit www.mysite.nl, he has to connect to 192.168.0.100
But it doesn't work

Can someone help me with that problem?



Thanks

Nuet


My System SpecsSystem Spec
.

17 Mar 2012   #2
zigzag3143

Win 8 Release candidate 8400
 
 

192.168.0.100 is your routers internal IP. www.mysite.nl is outside your router so it cant be found.

mysite.nl is at this ip 213.247.45.137]

Go to whatismyip.com to find your outside ip
My System SpecsSystem Spec
17 Mar 2012   #3
MilesAhead

Windows 7 32 bit
 
 

Also you may find these easy to use free utilities valuable:

Network Downloads /// AnalogX
My System SpecsSystem Spec
.


Reply

 problem hosts file




Thread Tools





Similar help and support threads
Thread Forum
Hosts file ignored and replaced with hosts.original
Hello. I am trying to use the hosts file. However both pings and web addresses still bypass the hosts file. I noticed that there is another file in the C:\Windows\System32\drivers\etc directory called 'hosts.original'. When ever I delete this file, it reappears seconds later. I have made sure that...
General Discussion
Hosts file editing: save problem
My Hosts file was lost so I downloaded a new one. This I edited to block two sites that had intruded and given trouble. I saved initially to desktop and then tried to paste and save it in to C:\windows\.......\etc , but failed to do so as error as per att, appeared, I am a sole user/...
General Discussion
Hosts file-S??
can the hosts file be changed to, or amended by, another file? IOW can there be a file named xyz that essentially replaces the hosts file, or adds entries to it? Possibly by a registry key or configuration setting? Of course it could by altering library fxns, but by other "simpler" means? ...
System Security
HOSTS File - Create a "Edit HOSTS file" Shortcut
How to Create a "Edit HOSTS file" Shortcut in Windows 7 and Vista The HOSTS file is a .txt file used in Vista and Windows 7 to map hostnames to IP addresses. Your computer checks this file first to resolve any network names to its corresponding IP address before it tries to check the Internet....
Tutorials
HOSTS file
I setup a hosts file in windows xp in order to use my website locally using the exact domain name by editing the hosts file by adding the line: 127.0.0.1 www.test.com This should resolve my local ip address for the test.com site and if apache is running, then it should load the website...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:31.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App