beyond-all-reason / teiserver

Middleware server for online gaming
https://www.beyondallreason.info/
MIT License
57 stars 53 forks source link

Cannot start match if SPADS is in WSL and BAR is in Windows (dev environment) #239

Closed jauggy closed 6 months ago

jauggy commented 6 months ago

Let's say you have set up your dev environment as follows:

When you try and start a match, Chobby tries to connect to SPADS directly using 127.0.0.1. But it will fail. It can fixed if you get Chobby to connect to the WSL ip address.

jauggy commented 6 months ago

If you go to spads folder etc/spads.conf change the ip address of lobbyHost to your wsl ip address (instead of 127.0.0.1). You can find your wsl ip address by running:

wsl hostname -I

Try and run teiserver and SPADS. You may get an error to do with geoip. In that case, go to localhost:4000 Admin > Site Config > System Then change Use geoip to false. Restart teiserver. Now try and start a match again.