Port

Command: vagrant port [name|id]

The port command displays the full list of guest ports mapped to the host machine ports:

$ vagrant port
    22 (guest) => 2222 (host)
    80 (guest) => 8080 (host)

In a multi-machine Vagrantfile, the name of the machine must be specified:

$ vagrant port my-machine

Options

© 2010–2018 Mitchell Hashimoto
Licensed under the MPL 2.0 License.
https://www.vagrantup.com/docs/cli/port.html