Sometimes, when I vagrant up my dev environment, the below warning appears.
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 9200 is already in use on the host machine.
So what we need to do is to list any process listening to the port 9200. Type in your command line:
It will return something like this:
||DEVICE SIZE/OFF NODE NAME
||TCP [fe80:1::1]:wap-wsp (LISTEN)
||TCP localhost:wap-wsp (LISTEN)
Finally kill the process with its PID:
kill -9 644