-
Notifications
You must be signed in to change notification settings - Fork 861
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
linux command 'netstat' doesn't work on WSL on Build 14986 #1488
Comments
Is there anyone who can help me ? |
If you run Also, are you able to run other Web services? For example, Also, what Windows firewall program (if any) are you running? Some third-party firewalls cause trouble for WSL processes. They're slowly being updated to work properly with WSL. |
@aseering I tried another Web server(SimpleHTTPServer) and also turn off the firewall. I still could not connect my website. It seems my WSL can not run any Web services properly although I can see the process running in bash: |
I have the same problem. The output for BTY, I already have the |
@tianxiaxi -- what firewall program are you using? Note that I am not asking whether you have turned that program off. That is not important. Some firewalls break WSL even when they are turned off. |
@aseering windows built-in firewall and Tencent PC Manager. I don't want to uninstall my firewall program in case of being exposed to virus. |
@Sixoloy -- the Windows built-in firewall should be fine. Regarding Tencent PC Manager -- I don't see any discussion of it (working or otherwise) on #475 (the ticket that tracks third-party firewall issues). You may be the first person to try running WSL under it and to post here about it. I don't know whether Tencent is your problem, but it could be. The only way to know for sure would be to uninstall it and see whether that fixes your issue. You could then reinstall right after testing WSL; if you keep the Windows firewall in place, having only one firewall for a few minutes while you test should hopefully not be too big of a risk. If the problem is Tencent, then Tencent will need to provide the fix: For security reasons, if a firewall says to not let a network connection through, then Windows needs to not let that connection through. WSL applications look very unusual (they are, after all, Linux binaries); some firewalls that don't know about WSL just block them to be safe. In that case, Tencent might already have a patch that adds WSL support; you could ask them. |
The default windows firewall and defender. |
@aseering I have already uninstalled Tencent PC Manager, but WSL web services still do not work... |
@Sixoloy -- ah, good to know; that rules that out. I'm not sure what else could be the cause. Someone on the WSL team might have an idea. But a few ideas on things to try or to check:
|
@aseering Of course I can run those same commands perfectly on Windows. sixoloy@Sixoloy:/mnt/c/Users/Administrator$ ps -aux When I type 'netstat', it shows nothing on the screen. I suppose there is something wrong related with net ports on my WSL. |
@Sixoloy - Sorry for the delay here. Just FYI that the Can you try couple of things and post back your experience?
|
sixoloy@Sixoloy:/mnt/g/ffmpeg/win/bin$ sudo /etc/init.d/apache2 start
|
Thanks @Sixoloy. @lefty-kreouzis had a very similar problem in #1554. For him, a reinstall of Windows did the trick. Not something I would want to recommend, but I am out of ideas otherwise. You can try:
Please do backup your data prior to any reinstall. Not sure why |
same problem. cant connect to my web server on wsl from windows. Things i have tried so far; |
Same problem too. |
Is netstat still not functional? |
I have the same problem (servers don't work/netstat shows nothing): |
Same Problem |
+1 netstat shows nothing |
same problem too |
same problem with the built-in firewall. |
same problem |
+1
|
Hi, I think i've the same problem |
Hi, I have the same problem, I think. |
+1 netstat shows nothing |
A possible solution may be here; |
@tangyouwo the solution @rishavs provided is probably relevant to you. looks like there are two issues... one is people unable to connect to TCP or UDP services due to the software firewall embedded in their Linux distribution. a separate issue is that
|
after uninstall Tencent software, nginx tcp port could be connected, but netstat -ln still show nothing... |
As it states above, |
netstat,lsof still not work! 2018年10月13日 |
netstat not working,,, come on. |
yep, not working... LOL! |
Netstat I get, because there is no use land access to the network
interfaces. But lsof _should_ work and if it doesn’t, it means there are a
lot of filesystem APIs that aren’t implemented. This will break more than
you think.
…On Wed, Dec 12, 2018 at 6:51 AM nephewtom ***@***.***> wrote:
yep, not working... LOL!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1488 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAEMQuhojRbCe7Ss2ff_FeTuiYv0ZLvRks5u4O3NgaJpZM4LJ-bD>
.
|
apt install net-tools |
I just update to Build 14986 and re-install my bash. I try to set up a HTTP server using node.js. Although I got a line says:
sixoloy@Sixoloy:/mnt/g/ffmpeg/win/bin$ sudo node server.js
[sudo] password for sixoloy:
Server running at port: 8899.
But I still can't visit my site. I typed 'http://localhost:8899' on my browser, and I got a refused connection. So I typed 'netstat -an' in my bash and found empty port information!
Here are the results I got:
Windows PowerShell
版权所有 (C) 2016 Microsoft Corporation。保留所有权利。
PS C:\WINDOWS\system32> bash
sixoloy@Sixoloy:/mnt/c/Windows/System32$ netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
sixoloy@Sixoloy:/mnt/c/Windows/System32$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
sixoloy@Sixoloy:/mnt/c/Windows/System32$
The text was updated successfully, but these errors were encountered: