I'm using ZeroMQ to set up a client-server communication system where the server runs on WSL and the client runs on Windows. For testing purposes, I'm using the default client-server example code in C from the ZeroMQ guide. The protocol and ports are the same as in the example, with the only difference being the address the client connects to.
Here's what I've tried so far:
Using the WSL vEthernet Address: After turning off the firewall, the client was able to send a message to the server but was unable to receive the response, even if I was able to ping the machines both ways. Setting up a netcat server on windows showed that WSL wasn't able to make requests to it.
Running WSL in Mirrored Mode: I also tried running WSL in mirrored mode, but this did not resolve the issue, with the server not event receiving the request, even if I was able to ping both ways, and also managed to setup a netcat server on windows and make a request to it from WSL.
The problem doesn't seem overly complicated, but I feel like I'm missing a piece to make it work. Has anyone successfully set up ZeroMQ communication between WSL and Windows? Any suggestions on what I might be overlooking or how to troubleshoot this further?
Additional Details:
- Server: Running on WSL (Ubuntu 22.04)
- Client: Running on Windows 10
- ZeroMQ Version: 4.3.5