Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a repository on the host machine (Windows 7) that I need to expose (via http protocol) to the virtual machine but not the the other world (even other computers on the router).

On the virtual machine (Windows server 2008 R2) I have a deployed web application that I need to be exposed to my host only.

Is that can be achievable?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can setup a new networking interface for your virtual machine. Configure the interface to host-only networking. With host only networking the adapter only allows traffic between the VM host and the VM guest, without allowing access to the external network.

You can then configure your web server to only serve pages on the host-only network interface. Your host would need to access the web application using the host-only IP address, obviously.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.