Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
Discussion options

I am using the following tools for my site:

  1. Windows + WSL (Windows Subsystem for Linux)
  2. Node.js is installed through WSL
  3. My app is running through WSL
  4. I'm using Local by Flywheel installed on Windows

With this setup, I spent an agonizing amount of time trying to figure out why I was getting a "fetch failed" error. To get around it, I had to do the following:

  1. in your WSL terminal: cat /etc/resolv.conf
  2. The IP address associated with the "nameserver" in the response is your IP. Keep this for later.
  3. In Local, click the main menu button >> preferences >> Advanced >> set "Router Mode" to "localhost".
  4. Note the port for your site beside "site host"
  5. Set your WORDPRESS_URL in your .env file to the IP address you received with the port set on the Localhost in Local.

Given these settings:

cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.17.48.1

After changing this:
image

I see this:
image

And my resulting configuration is this:

# Your WordPress URL.
WORDPRESS_URL="http://172.17.48.1:10005"
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.