[thelist] Question on hosts file and LAN

Ken Schaefer Ken at adOpenStatic.com
Sat May 12 05:04:31 CDT 2007


Hi,

How are you trying to connect to the site that's hosted inside your virtual
machine? Are you trying to connect from your Host OS? Or are you trying to
connect using a browser in your Guest OS? 

If the latter, then you simply need to change your VM's networking options so
that you are not using any sort of bridged networking (then you have no
dependency on the TCP/IP stack of the host OS)

If the former, then try Jason's suggestion. Additionally, check the VPN's
network connection properties to see if the use of a hosts file is enabled or
not.

Cheers
Ken

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Brooking, John
Sent: Friday, 11 May 2007 3:20 AM
To: thelist at lists.evolt.org
Subject: [thelist] Question on hosts file and LAN

Hello,

   After finally getting my local PHP installation to work with multiple
local development host names through the Windows hosts file, I've got
one more lingering problem. I've got all this installed on the same
laptop I use for my full-time corporate job. (Actually, on a VMWare
virtual machine, but I also had the problem on the base machine before I
started using the VM, so I don't think that's the problem.) When I'm
just connected to the Internet at home, without being connected to my
company LAN, it works fine. When I'm at work connected to the LAN, or at
home connected through the VPN to the company LAN, it seems that the
hosts file is not used. If I try to go to one of those local names under
those conditions, I get an error that the name cannot be resolved. At
home, if I once more disconnect the VPN (on the base machine), then the
hosts names once again resolve correctly (in the virtual machine).

   I know just enough about networking to suspect that being connected
to the LAN is probably causing my local hosts file to be superceded by
the company's domain server, but I don't know what, if anything, I can
do about it. Is there a way to refer the system to the hosts file in
addition to the domain server? Am I on the right track? Anyone else
dealt with this?

   The root site at localhost:8080 still works, so perhaps Apache has a
virtual directory sort of feature where I can map the other sites as
"directories" of the root site as an alternate way of getting to them?
Although that will likely introduce pathing problems in a variety of
places, so I'm not keen on that approach.

   Any advice appreciated.

- John

-- 


This message may contain information which is private, privileged or
confidential and is intended solely for the use of the individual or entity
named in the message. If you are not the intended recipient of this message,
please notify the sender thereof and destroy / delete the message. Neither
the sender nor Sappi Limited (including its subsidiaries and associated
companies) shall incur any liability resulting directly or indirectly from
accessing any of the attached files which may contain a virus or the like.

-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 



More information about the thelist mailing list