Repository navigation
Closed
Description
Version
Microsoft Windows [Version 10.0.19041.1288]
WSL Version
- WSL 2
- WSL 1
Kernel Version
5.10.16
Distro Version
Ubuntu-20.04
Other Software
node.js and using http-server
Repro Steps
// wsl
$ ping 192.168.1.48
PING 192.168.1.48 (192.168.1.48) 56(84) bytes of data.
^C
--- 192.168.1.48 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2108ms
Also, I get this error when trying to create an http server:
// wsl
$ http-server -a 192.168.1.48
node:events:368
throw er; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL: address not available 192.168.1.48:8080
at Server.setupListenHandle [as _listen2] (node:net:1302:21)
at listenInCluster (node:net:1367:12)
at doListen (node:net:1505:7)
at processTicksAndRejections (node:internal/process/task_queues:84:21)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1346:8)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'EADDRNOTAVAIL',
errno: -99,
syscall: 'listen',
address: '192.168.1.48',
port: 8080
}
Expected Behavior
To get response from ping. And to be able to create an http-server mapping my real local network ip.
Actual Behavior
3 packets transmitted, 0 received, 100% packet loss, time 2108ms
Diagnostic Logs
The output of ipconfig in cmd/msdos
C:\Users\enzo>ipconfig
Windows IP Configuration
Ethernet adapter Ethernet 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL):
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::2ca7:90a:260a:faf4%40
IPv4 Address. . . . . . . . . . . : 172.23.224.1
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . :
Wireless LAN adapter Local Area Connection* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::19c4:66ec:15cf:8f2e%7
IPv4 Address. . . . . . . . . . . : 192.168.1.48
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Reacted by bynho
Metadata
Metadata
Assignees
Labels
No labels
Activity
bynho commentedon Nov 20, 2021
Josema (@Josema) Did you find a solution? Im encountering the same issue
microsoft-github-policy-service commentedon Feb 1, 2024
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Thank you!