2 ms·
Still WSL2 lacks of two fundamental things: the lack of bridge networking (being able to connect to a server running in the WSL from another host in the LAN) an
by alerighi 5y ago
Still WSL2 lacks of two fundamental things: the lack of bridge networking (being able to connect to a server running in the WSL from another host in the LAN) and the lack of sharing serial ports with the host (better would be USB devices, but at least WSL1 did share serial ports and since most microcontroller programs and debug with serial port it was sufficient).
- _xerces_ 5y agoYou can work around the serial port issue using something like Comm Tunnel: https://www.serialporttool.com/GK/comm-tunnel/ https://www.serialporttool.com/GK/comm-tunnel/ Open Comm Tunnel and setup for your com port (from device manager) and port 2101 Then in WSL2 use socat to connect: socat -d -d tcp-connect:172.18.96.1:2101 pty,raw,echo=0 It will output something like: >socat[18786] N PTY is /dev/pts/2 Then from within WSL2 you know to use '/dev/pts/2' as the COM port for serial and it will connect to the COM port. It works most of the time for me, but Comm Port seems lag if the throughput gets too much for it to handle.