-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WSL / Server] Can't access local server in Windows Subsystem for Linux #2696
Comments
Seem like an issue under WSL. microsoft/WSL#1853 As Hexo support Windows CMD, you could run it in powershell/prompt command line. WSL is still in Beta version, which isn't stable yet. |
@NoahDragon Thanks. |
the same problem on win10 1709 16299.251 sooooooooooooooooo sad |
@imgwho so am I. I'm using swoole to test the tcp server, but... tears drop. |
FWIW, if you're running on a pixelbook/linux, use |
Other node apps run fine with localhost. What is hexo serve doing differentially? |
Environment Info
Node version(
node -v
):v8.1.4
Hexo and Plugin version(
npm ls --depth 0
):For question
Can't access the local server after executing
hexo s
orhexo server
.The hexo was installed in WSL(Windows Subsystem for Linux) and it worked fine before.
The browser shown:
After executing
hexo s
orhexo server
it shows:Here are some weird things:
hexo s
orhexo g
.( even in debug mode)netstat -an | findstr 400
(also in others ports)Here are the things I tried but not work:
127.0.0.1:4000
,localhost:4000
and0.0.0.0:4000
node_modules
folder & Reinstall all pluginsMy English is poor. I will provide Chinese version if you need.
Thanks.
The text was updated successfully, but these errors were encountered: