SOLVED Port Forwarding and VirtualBox

Status
Not open for further replies.

RoadHazard

Explorer
Joined
Nov 29, 2015
Messages
83
I can't seem to find the correct port forwarding setup that will allow a Windows app running inside VirtualBox to expose its port to the outside world.

The Win7 guest OS says its IP is 10.0.2.15, which was assigned to it by VirtualBox's internal DHCP.
VirtualBox itself (or rather, its jail) is at 192.168.1.192 on my LAN. I can reach that address no problem.

The phpVirtualBox GUI supports port forwarding, so I've set it up to forward 192.168.1.192:2281 to 10.0.2.15:81 (both for TCP and UDP). That *seems* like the right thing to do, but no joy.

My external router (i.e., between my LAN and the outside world) shouldn't be relevant here. I'm just trying to connect one LAN client to another LAN client, albeit one inside a VM.

Any hints, pointers, or suggestions?
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Can you set vbox VM to use a bridge network instead of nat or host only?
 

RoadHazard

Explorer
Joined
Nov 29, 2015
Messages
83
Yup! That was too easy. Thanks.

Guest OS inside the VM now appears as a peer on the LAN, with a 192.168.1.xx address, instead of being "buried" inside the VM's own world. Spiffy.
 
Status
Not open for further replies.
Top