Hi,
I have install and configure a linux host with NAT and port forwarding.
I can acces from my local computer to the guest via port forwarding to webmin.
local : 127.0.0.1:10008 route to guest 127.0.0.1:10000
On the guest I wan to use an application which use a mysql DB but I wan to use the DB on the local computer.
Is it possible?
My mysql on local computer is on port 3306.
Thanks
NAT from GUEST to host
-
- Site Moderator
- Posts: 39156
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: NAT from GUEST to host
NAT is not a direction, it's a service provided by the VirtualBox software on the host.
So, if you can find some software that provides a similar service inside the guest, and of course provide the guest with its own independant internet connection, then yes of course these roles could be reversed.
Is there some reason you didn't just use bridged networking? Or host-only networking?
So, if you can find some software that provides a similar service inside the guest, and of course provide the guest with its own independant internet connection, then yes of course these roles could be reversed.
Is there some reason you didn't just use bridged networking? Or host-only networking?
-
- Volunteer
- Posts: 2560
- Joined: 30. May 2007, 18:05
- Primary OS: Fedora other
- VBox Version: PUEL
- Guest OSses: XP, Win7, Win10, Linux, OS/2
Re: NAT from GUEST to host
Did you try to just connect to the normal IP address of your host?
-
- Posts: 3
- Joined: 18. Nov 2013, 17:11
Re: NAT from GUEST to host
yesMartin wrote:Did you try to just connect to the normal IP address of your host?
actually I used a local mysql and I synchronise the local db to the host db manually
my goal is to remove the db inside the guest vm.
-
- Posts: 3
- Joined: 18. Nov 2013, 17:11
Re: NAT from GUEST to host
mpack wrote:NAT is not a direction, it's a service provided by the VirtualBox software on the host.
So, if you can find some software that provides a similar service inside the guest, and of course provide the guest with its own independant internet connection, then yes of course these roles could be reversed.
Is there some reason you didn't just use bridged networking? Or host-only networking?
Bridge : I can't put a vm is the compagny network
host-only : the DB is on my physical local computer, the vm is running web apps + mysql db I wan to remove this db on the guest vm and use the db on my computer.
I had a look on documentation with host only but I do not know if it's possible to acces it from the local computer
if my local computer is running on 172.16.3.xxx what should the host-only adaptater setting?
-
- Volunteer
- Posts: 2560
- Joined: 30. May 2007, 18:05
- Primary OS: Fedora other
- VBox Version: PUEL
- Guest OSses: XP, Win7, Win10, Linux, OS/2
Re: NAT from GUEST to host
You should be able to reach the host db from the guest through NAT using the host IP address.vincentk222 wrote:yesMartin wrote:Did you try to just connect to the normal IP address of your host?
actually I used a local mysql and I synchronise the local db to the host db manually
my goal is to remove the db inside the guest vm.