Connecting to a Windows server process from WSL
Monday, January 23, 2023
No big revelation here, just writing this as a reminder to myself next time I try
curl localhost from WSL and it doesn't work:
- Don't use
127.0.0.1. Use your machine IP. But you shouldn't even need to figure this out. Using
your-computer-name>.localshould work (eg
curl Joshs-PC.local. Even better:
- Make sure your server is listening on
Source: this excellent StackOverflow answer.
Hey👋. I write about interesting software engineering challenges. Want to get updated when I publish new posts? Just visit tntcl.app/blog.shalvah.me.
(Confession: I built Tentacle.✋ It helps you keep a clean inbox by combining your favourite blogs into one weekly newsletter.)
Powered By Swish