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

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
add comment

1 Answer

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
add comment

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.