Changing Windows 'hosts' file in guest OS under Parallels Desktop 6 on Mac

0

I am running Windows 7 in a Parallels Desktop 6 on Mac.

On the mac, I use /etc/hosts:

127.0.0.1 mysite

and it works fine; I can type mysite in the URL box and the website will display.

What I want to do is be able to reproduce the same on Win7 with IE8, for example.

Another guy on Server Fault has done it successfully, here but I can't.

On Mac, I've done this:

ifconfig -a  

vnic0 10.211.55.2

On Windows 7, I tried this

 C:\Windows\System32\drivers\etc\hosts

10.211.55.2 mysite

What am I missing?

ling

Posted 2011-06-29T08:04:16.763

Reputation:

@JdeBP thanks for the flag WRT the OP needing to accept an answer, but there's nothing the mod team can do. We cannot force an accepted answers - ever. The only way this question will get an accept is if the user registers on both SF and SU, and links their accounts, to get ownership of the question back and then they can accept an answer themselves. – DMA57361 – 2011-06-29T11:17:28.367

I suggested help, to a new user who had posted an acceptance as another answer, rather than force. – JdeBP – 2011-06-29T12:05:37.317

Answers

1

if you use apache for your test web site, you need to bind (listen) first ip:port 10.211.55.2:80 in httpd.conf to make it work.

Add this row in httpd.conf (You can find first 127.0.0.1:80 and press new row after it)

Listen 10.211.55.2:80

Anotomix

Posted 2011-06-29T08:04:16.763

Reputation: 657

@ling, if you want to re-gain ownership of this question (so you can accept an answer, comment, etc) then please note that you need to register on SF and SU and link your accounts. – DMA57361 – 2011-06-29T11:21:26.397