How to access Oracle DB in VirtualBox from Host (w

2019-02-02 01:55发布

I installed VirtualBox with a Oracle VM.

Now I simply try to access the Oracle Database of the VM from the host environment, but it doesn't work.

ipconfig on my host shows an IP number, but when I try to open this (Port 80), i get the content of localhost of the host system instead of the content of the server in the VirtualBox.

Which is the proper network setting ?

3条回答
Animai°情兽
2楼-- · 2019-02-02 02:28

I usually do a bridged connection so the vm will pick up an ip address from my router's dhcp; if that option is not available, your other option is to employ port forwarding where you assign an unused port on the host machine to forward to the port on the vm. The virtual box manual has a lot of useful info on both of these options. Let us know if you need additional info or examples.

查看更多
地球回转人心会变
3楼-- · 2019-02-02 02:34

- Use Host-Only Networking on your guest machine

enter image description here

- See if the server (WEB, DB etc.) is running.

enter image description here

- Mouse-over network icon on status bar to note ip address

enter image description here

- From your host browser send a request to your quest server

enter image description here

查看更多
贪生不怕死
4楼-- · 2019-02-02 02:40

Turn off the Windows Firewall on the Virtual PC. I've just fixed my HTTP request from Host to VM by turning off the firewall.

查看更多
登录 后发表回答