Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have setup a server in a virtual machine using VMWare.

The server is Apache running on Debian (the virtual machine). The host machine is Windows 7.

Now, I would like everyone on the LAN to be able to access the server through my machine's name on the network.

How can I achieve that?

The main problem here is that there is a proxy on the LAN. When I try to access the server, I must not use the proxy, else the proxy can't find my server (logical). So that's why I must forward the access to the Apache through my Windows machine (my windows machine is accessible on the LAN).

Note: The only thing I can't control on my LAN is my own machine. I can't change the configuration of the proxy, or a router or anything else.

share|improve this question

I would set my VMware network adapter to Bridged mode which will make the VM accessible by others on the network by its on IP. As requested, you want it to be accessible with the same name as your machine, so I would modify the %systemroot%\system32\drivers\etc\hosts file (which is hidden by default) so that, for example, your machine's name points to your VM IP.

share|improve this answer
I don't want to have to modify the hosts file of every computer on my LAN (and I can't). Anyway the proxy prevents those computers to reach my VM because it (the proxy) doesn't know the VM. – Matthieu Napoli May 3 '12 at 12:32
You need to modify the hosts file on your machine, not on others. Anyway I might not have understood the proxy part... As I see it the proxy has nothing to do with it as you stated that the computers are on the same LAN as you... – Silviu May 3 '12 at 12:34

Your Answer


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.