Solved

How to connect to my local website from VM enviroment?

Posted on 2010-11-11
9
879 Views
Last Modified: 2013-12-23
I have Linux running on VMWare in Windows 7 Pro on my laptop.  I have a test website i designed in ASP .NET that runs on IIS 7.5 locally through the intranet.

Website runs fine and can be seen on my machine internally with an IP address on my browser.  

I want to be able to view this website in the Linux environment I have installed with VM Workstation 7.1.

I have the connection bridged to get internet when I'm on the Linux environment.

What else do I to set up in VMWorkstation 7.1 to be able to view my website on the intranet?
0
Comment
Question by:mmedi005
9 Comments
 

Expert Comment

by:leo_ji
ID: 34117911
first of all, you should get the Ip address from both your vm linux and win7
if you are using bridged network,  they 0must be different but in the same ip range.
you can access the website by entering your win7's ip addres.
if the website is not at root level, add "\sitename" after the ip address
0
 

Author Comment

by:mmedi005
ID: 34119515
i haven't set a name to the website,  but i have set an IP address. I have the website in my inetpub folder.  I got the linux side to connect to internet with "start wicd" command.

How can I get the information your looking for to see the site in linux? The linux OS im running is backtrack 4 in VM. Im fairly new to linux.
0
 

Author Comment

by:mmedi005
ID: 34121585
Linux shows this with ifconfig

inet:172.22.50.46


My website url is http://172.22.51.45

Not working, what should I change?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Expert Comment

by:uncugly
ID: 34132437
What are the subnet masks on both machines ?

Are they on the same logical lan eg 255.255.0.0 ?

Can you ping from the Linux machine to the Windows box ?

Is the 172.22.51.45 address the address of the Windows box ?
0
 

Author Comment

by:mmedi005
ID: 34136540
I changed my set up to NAT in network settings of VM.  

>>What are the subnet masks on both machines ?
>>Are they on the same logical lan eg 255.255.0.0 ?

VM (Linux) Mask is 255.255.0.0
Laptop (Windows 7) Mask is 255.255.255.0

>>Can you ping from the Linux machine to the Windows box ?
Im able to ping 172.22.51.45 which is my laptops ip here in this network.

VM gives the Linux enviroment 172.22.50.46

0
 
LVL 1

Expert Comment

by:uncugly
ID: 34143387
Hi,

You probably want VM to set the network your Linux machine is on, as bridged - then the virtual machine will appear as if it is on your real network. If something on your LAN gives out DHCP then your Linux environment should get given a real IP address.

At the moment its on a virtual network, and can access your physical LAN by being NAT'd behind your physical machine. Inbound connections to your Linux environment won't work as your PC probably won't pass the connection to the VM.

0
 
LVL 1

Expert Comment

by:uncugly
ID: 34143853
having just re-read your original post - you said you originally had bridged. so my above comment not to relevent. When on Bridged did the Linux machine get an IP address automatically ?

Did you get internet access with either Bridged or NAT ?

I think the problem is that the NAT network on the VM has a clashing subnet with your real lan. So the Linux machine believes the destination is on the same network, and does not send the traffic to the default gateway.

I would change the IP address range of whichever network you are using on VMware workstation so that it doesn't conflict with your LAN.

0
 

Author Comment

by:mmedi005
ID: 34146333
Ok,

I move around with my laptop a lot, so there isnt really a set network.  The internet connection did work on both NAT and bridged.  I wanted the Linux environment to be able to access the website created and hosted locally on my laptop (same laptop that has VM Workstation installed and running Linux environment).

I'm trying to achieve this for testing purposes with some security tools I want to demo from Linux environment any where I go.
0
 
LVL 1

Accepted Solution

by:
mattd_br earned 500 total points
ID: 34215256
For your purposes I would think that the guest's network adapter should be bound to a NAT virtual network in VMWare.  Make sure that the network assignment lies outside of the physical host network as to avoid clashes as uncugly suggested above (you can check this in the NAT tab in the Virtual Network Editor of VMWare).

In Win 7 (host OS), you'll have a VMWare Network Adapter VMnetX, where X corresponds to the virtual network number assigned to the NAT service.  Check the IP of this address.  In the guest OS, you would browse to this address in the web browser to access your localhost site on the host machine.

I believe this would be the ideal scenario for you as you stated you would be moving around a lot; using NAT mode will keep the host address consistent for you to access (it's statically assigned).
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now