Last Updated: February 25, 2016
·
15.69K
· ronanguilloux

Get vagrant box guest IP from host

vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null

(OS X): copy it to clipboad

vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null | pbcopy