yes you can:

try this:

config.vm.network :forwarded_port, guest: 22, host: 2200, id: "ssh",
disabled: "true"

config.vm.network :forwarded_port, guest: 22, host: 2230



On Thu, Aug 6, 2015 at 1:31 PM, Joaquin Menchaca <[email protected]> wrote:
> Is there anyway to configure the host port instead of having this
> automatically decided?
>
> ==> default: Forwarding ports...
>     default: 22 => 2222 (adapter 1)
>
> I would like to set the port to something of my own design, not have it auto
> assigned 2222.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/40f38501-ab20-400e-86b1-9460535ca0ee%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewr%2BPaiHNymCSiPPtEnYzPeLs6hL5ORptPMr7DqbzgjpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to