Port
Command: vagrant port [name|id]
The port command displays the full list of guest ports mapped to the host machine ports:
In a multi-machine Vagrantfile, the name of the machine must be specified:
Options
--guest PORT
- This displays just the host port that corresponds to the given guest port. If the guest is not forwarding that port, an error is returned. This is useful for quick scripting, for example:--machine-readable
- This tells Vagrant to display machine-readable output instead of the human-friendly output. More information is available in the machine-readable output documentation.