I have boxing with JBoss. I am trying to forward two ports. My Vagrantfile has the following meanings for
web.vm.network "forwarded_port", guest: 8080, host: 8080 # jboss web.vm.network "forwarded_port", guest: 9990, host: 9990 # jboss management console
On vagrant up web I see in the console
==> web: Forwarding ports... web: 8080 => 8080 (adapter 1) web: 9990 => 9990 (adapter 1)
When I do netstat ports it seems ok
$ sudo netstat -tulpn | grep VirtualBox [sudo] password for ostraaten: tcp 0 0 0.0.0.0:9990 0.0.0.0:* LISTEN 21241/VirtualBox tcp 0 0 127.0.0.1:2222 0.0.0.0:* LISTEN 21241/VirtualBox tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 21241/VirtualBox
When I do curl -v http://localhost:8080 in the Vagrant box itself, this works fine. I see JBoss stuff.
When I do curl -v https://localhost:8080 on the host, something else happens.
$ curl -v http://localhost:8080 * Rebuilt URL to: http://localhost:8080/ * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8080 (
There is no firewall in the Vagrant field.
The configuration for port forwarding at first seems trivial, but now it looks like itβs more. How should this work?
source share