Help! My Local site cannot establish a connection to WordPress.org


#1

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 WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)


Solution on macOS

  1. Quit Local if it’s running
  2. Open Terminal
  3. Run /Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine stop local-by-flywheel
  4. Run VBoxManage modifyvm local-by-flywheel --natdnshostresolver1 on
  5. Run VBoxManage modifyvm local-by-flywheel --natdnsproxy1 on
  6. Re-open Local and check the site

Solution on Windows

  1. Quit Local if it’s running
  2. Open Cmd.exe
  3. Run %LocalAppData%\Programs\local-by-flywheel\resources\extraResources\virtual-machine\vendor\docker\windows\docker-machine.exe stop local-by-flywheel
  4. Run "%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe" modifyvm local-by-flywheel --natdnshostresolver1 on
  5. Run "%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe" modifyvm local-by-flywheel --natdnsproxy1 on
  6. Re-open Local and check the site

Warning: An unexpected error occurred
Error when attempting to install plugin
Cannot download or update plugins
New Site Issues
Local not working when connected to VPN
Add Plugins Page Error
Local by Flywheel 2.3.1 (Pre-release)
Cannot download or update plugins
Installing WordPress in Spanish
Unable to install plugins
Newbie in town… cannot access internet via Wordpress in flywheel I server configuration problem
Cannot download or update plugins
OSX Site slow when connected to the internet
Phlox theme download failed windows 7
Local Slow Depending on Number of Plugins Active
Cannot download or update plugins
Slow on Windows 10
Local by Flywheel 2.3.3/2.3.4
Updating Plugins
Unbearably slow when connected to a network & Unable to mount NFS