Workaround – Cloudflare Warp break localhost: ERR_ADDRESS_INVALID

image Workaround - Cloudflare Warp break localhost: ERR_ADDRESS_INVALID
Can not access to localhost: ERR_ADDRESS_INVALID

After install Cloudflare Warp VPN, I run into a problem that I can’t access localhost. Chrome always show error:ERR_ADDRESS_INVALID
And all my running services (APIs, Website Front-end,…) can not connect to localhost(127.0.0.1) address

The only thing still work is the LAN IP address.

The first workaround is restart computer, but after start Warp, it break localhost again (Maybe the root cause is Warp had created a team private network)

ANd Poxrud found a solution that works a dream:

sudo ifconfig lo0 -alias 192.0.2.2

Happy working!

You may also like...