Jump to content

VM Bridge conection with network off

JuztBe

Hello, 

At internship I have set up apache ubuntu server. It runs as a virtual machine with network adapter set as bridge. Then in windows host file I enter VM IP, domain name and I can connect to my project.
Problem is that in dorm bridge connection is blocked, I can't run it while having a network on.
How do I configure VM so I could reach it without network connection 

Laptop: Acer V3-772G  CPU: i5 4200M GPU: GT 750M SSD: Crucial MX100 256GB
DesktopCPU: R7 1700x GPU: RTX 2080 SSDSamsung 860 Evo 1TB 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Crunchy Dragon said:

I'm pretty sure you can't access anything remotely without a network connection.

Should there be a way to link a host and VM? I'm running VM locally on my machine.

Laptop: Acer V3-772G  CPU: i5 4200M GPU: GT 750M SSD: Crucial MX100 256GB
DesktopCPU: R7 1700x GPU: RTX 2080 SSDSamsung 860 Evo 1TB 

Link to comment
Share on other sites

Link to post
Share on other sites

what VM solution are you running ? Hyper V ? Vmware ? etc 

 

you can usually add an internal host only interface that gives the host and other VMs access to it, but it will not try to grab an external ip or bridge through to your externl network

 

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, JuztBe said:

Should there be a way to link a host and VM? I'm running VM locally on my machine.

Oh that's what you meant, I thought you were talking about connecting through the network. Derp.

 

Depends on what software you're using, but it appears that VMWare and VirtualBox both allow for networking between the host and VM. https://www.vmware.com/support/ws55/doc/ws_net_configurations_hostonly.html

 

Quote or tag me( @Crunchy Dragon) if you want me to see your reply

If a post solved your problem/answered your question, please consider marking it as "solved"

Community Standards // Join Floatplane!

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, factorialandha said:

what VM solution are you running ? Hyper V ? Vmware ? etc 

 

you can usually add an internal host only interface that gives the host and other VMs access to it, but it will not try to grab an external ip or bridge through to your externl network

 

 

7 minutes ago, Crunchy Dragon said:

Oh that's what you meant, I thought you were talking about connecting through the network. Derp.

 

Depends on what software you're using, but it appears that VMWare and VirtualBox both allow for networking between the host and VM. 

 

 

Virtual box. I'll look into that

Laptop: Acer V3-772G  CPU: i5 4200M GPU: GT 750M SSD: Crucial MX100 256GB
DesktopCPU: R7 1700x GPU: RTX 2080 SSDSamsung 860 Evo 1TB 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, JuztBe said:

 

Virtual box. I'll look into that

its relatively simple, effectively just setting your interface on the vm to be host only or something like that.

Link to comment
Share on other sites

Link to post
Share on other sites

There are two way to get network access to a VM NAT or bridge. I believe the are named basically the same if your using virtual box, or VMware or any other Virtual program.

 

Easiest way is setting the VM's nic to NAT. This it the most basic, whatever network your host computers has access to the VM should also get access to. However NAT is limited because the host computer hides the VM behind it, so nothing on the network will have direct access to the VM. So this won't work if your VM is a server of some kind.

The other way is bridge, this will give the VM access to a specified nic on the host computer. It will act as if the VM was directly plugged into the network. (note I have had issues with this if the Host is connected to the network over WiFi. it depends on how the WiFi network is setup. Best to do this over a wired connection.)

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×