How to access WordPress site running in Vagrant box on DigitalOcean droplet?

I can successfully run a local WordPress site in a vagrant box on my laptop.

Local Vagrantfile entries:

config.vm.hostname = “wordpress” “private_network”, ip: “”

From a browser, I can access the WordPress site at

But, once I try doing the same thing on my DigitalOcean droplet, does not work. Droplet Vagrantfile entries:

config.vm.hostname = “wordpress” “private_network”, ip: “” :forwarded_port, host: 8086, guest: 80

From a browser, I cannot access the WordPress site at ( is my droplet’s public IP) And, please note, I have a number of other sites running from different Vagrant boxes on my DigitalOcean droplet, just not WordPress sites.

This is my configuration for WordPress (setting database & user):

/usr/local/bin/wp core config --dbname=wordpress --dbuser=wordpress --dbpass=wordpress123

This is what I used to install WordPress:

/usr/local/bin/wp core install --url=
–title=“Blog” --admin_user=“admin” --admin_password=“admin”

Like I mentioned above, the WordPress site that is running on my local vagrant box is accessible to me at But, the WordPress site running on my droplet’s vagrant box is not accessible using my droplet’s public IP and forwarded port. I don’t know what I’m missing.

Any help would be appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@earlpearl17 is this resolved?