Closed Caiderkoujiao closed 1 year ago
I also meet the same problem now,so have you sloved this problem now? @Caiderkoujiao
The 127.0.0.1
in wsl is not same with 127.0.0.1
in the windows. You need to use the nameserver of the wsl to access the server process running on windows.
See also https://learn.microsoft.com/en-us/windows/wsl/networking
Besides, gamecore-server.exe
should be allowed to work on all network interface.
You can delete the inbound rule for the gamecore-server.exe
in firewall setting to reset the setting before.
I am really thankful for your reply.And I solved some problems with your help.But unfortunately,I meet some new problems now. First,I got the nameserver and connect it with my command telnet.
Then I delete the inbound rule as what you tell me to do.But when I start python test_env.py ,there is still some fault there.
I am looking forward to your reply.Thank you! @@hongyangqin @Caiderkoujiao @tencent-ailab @HIT-jixiyang
First,I got the nameserver and connect it with my command telnet.
Then I delete the inbound rule as what you tell me to do.But when I start python test_env.py ,there is still some fault there.
I am looking forward to your reply.Thank you!
------------------ 原始邮件 ------------------ 发件人: "tencent-ailab/hok_env" @.>; 发送时间: 2022年12月20日(星期二) 中午11:17 @.>; @.**@.>; 主题: Re: [tencent-ailab/hok_env] WSL2 cannot connect to 127.0.0.1 23432 when the gamecore server is running on Windows (Issue #11)
In wsl, the 127.0.0.1 in wsl is not same with 127.0.0.1 in the windows. You need to use the nameserver of the wsl to access the server process running on windows.
See also https://learn.microsoft.com/en-us/windows/wsl/networking
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
First of all, thank you very much for your meaningful work.
Now,WSL2 cannot connect to 127.0.0.1 23432 when the gamecore server is running on Windows.
I'm not sure what's wrong, the gamecore service or WSL2?
1、Start the gamecore server outside wsl2 successfully??
2、Failed to establish a new connection
I don't know what's wrong, how to solve this problem? How do you configure the environment?