Services in WSL or Docker on Windows
A server in WSL or Docker on the same Windows PC as Connect is reached through 127.0.0.1.
- Start the server and note its port.
- Docker: publish the port when you start the container, such as -p 8080:8080. For UDP, add /udp, such as -p 19132:19132/udp.
- In Sign in & setup, enter 127.0.0.1, the port and the type.
- Press Test local app before you save.
WSL: Windows passes TCP connections on 127.0.0.1 to programs in WSL. If a UDP service in WSL doesn't answer, read Microsoft's instructions below.
No answer on 127.0.0.1? Some servers, often Java ones, listen only on IPv6 inside WSL. Start Java with -Djava.net.preferIPv4Stack=true, or set the server's listen address to 0.0.0.0. Then test again.
Keep WSL running. Closing the WSL window can stop the server inside it. Keep the server running and the PC awake.
Official Microsoft WSL networking instructions
Still stuck? Sign in and send a support request.