I think you need the actual wsl ip address, try:
wsl hostname -I
Followed by:
netsh interface portproxy add v4tov4 listenport=9876 listenaddress=0.0.0.0 connectport=9876 connectaddress=<WSL_IP>

Jon

On 28 Aug 2025, at 10:49, Øystein Schønning-Johansen <[email protected]> wrote:


Hi!

I am experimenting a bit with external player - I would love to just download and install a windows build of GNU Backgammon and then connect to an external player hosted on a WSL based linux on the very same hardware.

  • So I've downloaded and installed GNU Backgammon for windows.
  • I have then installed GNU Backgammon on the WSL based Ubuntu 24.04 with apt. (sudo apt install gnubg)
  • Started gnubg on the Linux: gnubg -t
  • started the external player: external 127.0.0.1 9876
  • Switching back to the GUI gnubg installation on Windows and opening Setting->Players. Clicking the External player radio button and typing in "127.0.0.1:9876
So, now I was hoping that it would work out of the box - however, I get the error message in the Windows based GUI installation. It says:

"Windows socket error (127.0.0.1:9876):
No connection could be made because the target machine actively refused it."

Is this supposed to work, or is it blocked by a setting on my computer? Or is an incompatibility due to the implementation using Winsock on the GUI installation and unix sockets on the WSL?

-Øystein

Reply via email to