Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8080 port forwarder typo? #1

Open
santosomar opened this issue Oct 25, 2015 · 0 comments
Open

8080 port forwarder typo? #1

santosomar opened this issue Oct 25, 2015 · 0 comments

Comments

@santosomar
Copy link

Hi,

This is a very minor inquiry/comment. Is there a typo on the vagrant file?

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.network "forwarded_port", guest: 9200, host: 9200

The comments says that it should forward to 8080, but it is just mapping port 80 to 80 in the file. It may be good to either edit the comment or change it to 8080.

FYI, on a MAC OS X with Virtual Box, since I am already listening to 80. I get the following error message (which should be expected):

==> default: Setting the name of the VM: elk-demo_default_1445745165459_29979
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 80 is already in use
on the host machine.

To fix this, modify your current projects Vagrantfile to use another
port. Example, where '1234' would be replaced by a unique host port:

config.vm.network :forwarded_port, guest: 80, host: 1234

Sometimes, Vagrant will attempt to auto-correct this for you. In this
case, Vagrant was unable to. This is usually because the guest machine
is in a state which doesn't allow modifying port forwarding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant