1

wsl2 手动监听一个端口,但发现打开的却不是这个端口请问是为什么

 2 years ago
source link: https://www.v2ex.com/t/787309
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Windows

wsl2 手动监听一个端口,但发现打开的却不是这个端口请问是为什么

  ysn2233 · 8 小时 51 分钟前 · 506 次点击

我用 nc -l 44444 想监听这个端口,但是用 netstat -ntlp 发现打开的端口是 36967

Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:36967 0.0.0.0:* LISTEN 157/nc

wsl 里系统的是 Arch


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK