I've used something similar to get MAME's VT240 to talk to a WSL instance. Had to go dig up a forum post I wrote a few years back to find the exact commands.<p>On the WSL Linux side:
socat -d -d exec:'bash -li',pty,stderr,setsid,sigint,sane TCP-LISTEN:11313,reuseaddr,fork<p>On the Windows side:
.\mame.exe vt240 -window -host null_modem -bitb socket.10.0.0.2:11313