ruby on rails - Use VirtualBox to access site on host from guest? the host and guest is linux -


i'm running virtualbox on ubuntu (host), vm i'm using fedora (guest). virtualbox setup use nat network adapter, , i'm able internet. use port forwarding access ssh , rails web server

port forwarding rules

  <nat>     <dns pass-domain="true" use-proxy="false" use-host-resolver="false"/>     <alias logging="false" proxy-only="false" use-same-ports="false"/>     <forwarding name="rule 1" proto="1" hostport="5679" guestport="22"/>     <forwarding name="rule 2" proto="1" hostport="3080" guestport="3000"/>   </nat> 

now can access internet on guest machine , , can logging through ssh cannot access rails web server on port 3080

i tried :  localhost:3080 10.0.2.15:3080 #the guest ip 

what can need ssh , internet connection , open web site host on gust machine browser in host machine

thanks

in vb have set network host. in preferences->network. can access virtual machine via 192.168.56.101 ubuntu. port forwarding set on network card. list ifconfig. recommend use iptables port redirects.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -