Get err_connection_refused accessing django running on wsl2 from Windows but can curl from Windows terminal
问题 I got the err_connection_refused when trying to accessing django running on wsl2 (http://localhost:8000) from Windows but when I use curl http://localhost:8000 from Windows terminal bash, it's working fine. I have tried to add a new firewall inbound rule for port 8000 but it's still not working. Is there anything else I need to take care of. Thanks a lot 回答1: Seems like a forwarding problem. WSL2's interface is NAT'd, whereas WSL1 was bridged by default. Some ideas: Does the problem resolve