Help articles Local by Flywheel

Local site cannot establish a connection to

Depending on your network and computer configuration the Local VM may not be able to access external sites by default.

Common error text for this problem:

Warning: An unexpected error occurred. Something may be wrong with or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to Please contact your server administrator.)


Solution on macOS


Quit Local if it’s running

Quit Local if it’s running


Open Terminal & Run Commands

Open Terminal

Run /Applications/Local\ by\ stop local-by-flywheel

Run VBoxManage modifyvm local-by-flywheel --natdnshostresolver1 on

Run VBoxManage modifyvm local-by-flywheel --natdnsproxy1 on


Re-Open Local

Re-open Local and check the site

Solution on Windows


Quit Local if it’s running

Quit Local if it’s running


Open Cmd.exe & Run Commands

Open Cmd.exe

Run %LocalAppData%\Programs\local-by-flywheel\resources\extraResources\virtual-machine\vendor\docker\windows\docker-machine.exe stop local-by-flywheel

Run "%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe" modifyvm local-by-flywheel --natdnshostresolver1 on

Run "%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe" modifyvm local-by-flywheel --natdnsproxy1 on


Re-Open Local

Re-open Local and check the site

Was this article helpful?

  • Frequently Asked

    The most commonly asked questions, and a few we just think you should know.

    26 Articles
  • General Questions

    Questions that don't fit elsewhere, or those about Flywheel in general.

    59 Articles
  • Getting started

    Everything you need to know to get your first Flywheel site up and running.

    16 Articles
  • Domain Names

    Details about how to manage DNS and point your domain names at Flywheel.

    13 Articles
  • Billing & Accounts

    Questions relating to payments, billing and managing your account on Flywheel.

    13 Articles
  • Blueprints

    Learn everything there is to know about what Blueprints are, how to create them and how to make the best use of them.

    5 Articles
  • Database

    How to access your WordPress database to make changes and update content.

    3 Articles
  • Local by Flywheel

    Everything you need to know about our amazing, free local WordPress development software for Mac and PC.

    6 Articles
  • Organizations

    Everything you need to know about managing your team with our Organizations feature.

    8 Articles
  • Plugins

    Which plugins work best, which plugins work worst, and everything in between.

    7 Articles
  • Security

    Details about everything Flywheel does to makes your site so secure.

    13 Articles
  • SFTP

    Information on setting up and troubleshooting with SFTP connections and file transfers.

    4 Articles
  • Simple SSL

    All there is to know about our free, automatically installed and activated SSL certificates.

    9 Articles
  • Staging

    How to get the most out of Staging, which allows you to duplicate a site, make changes, and then push those changes to the live site.

    7 Articles
  • White Label

    Everything you need to know about our Whitelabel subscriptions for branding and reselling Flywheel.

    4 Articles

Flywheel help

Help is just a click away! Log into the Flywheel dashboard to instantly chat with an expert, open a ticket, or follow along with in-depth documentation. We happily offer support 24 hours a day, 7 days a week, 365 days a year!

Log in
WordPress experts

Try it yourself. It's free & takes less than 60 seconds. Sign up

[if lte IE 8]
[if lte IE 8]