Vagrant forward range port

You can forward as many ports as you want, as following:

for i in 8080..8089
          config.vm.network :forwarded_port, guest: i, host: i
end

on the script above tell to forward port 8080-8089

Please follow and like us:
0

Leave a Reply

Your email address will not be published. Required fields are marked *