connect through localhost not working (wsl2)
-
Im using wsl2 to test my bo2 docker server which i created. I can connect via the hostname ip, but not through localhost which seems odd because i enabled localhostforwarding and if i try it with other docker images like nginx its working through localhost and the hostname ip so for some odd reason its only with my bo2 server.
https://github.com/Kipura/codServer
this is my repository, maybe something is wrong in the dockerfile but i can't find anything.
-
kipura which port is your server running on? Server and game can't be running on the same port on the same machine.
-
Dss0 yeah I know, it's running on 4977, I read about "Why can't I find my server hosted at home while others can?" in the docs for bo2 where it says "Your router probably doesn't support NAT-Loopback", so I guess this could be the same with wsl2 but than idk why nginx etc. do work with localhost.