Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not connected to network" in Chinese edition, before seeing the door #447

Open
CHN-beta opened this issue Nov 20, 2024 · 7 comments

Comments

@CHN-beta
Copy link

CHN-beta commented Nov 20, 2024

After launch the game, it complains "network error: could not connect to network, please check your network settings, error code: 4201".

图片

The following command is used in launcher: %command% -platform_type CLOUD_THIRD_PARTY_PC

@Fearyncess
Copy link

Fearyncess commented Nov 20, 2024

i also encounter this problem. it seems an another anti-cheat detection, i guess.

ps. this error msg in eng. is "Failed to connect, please check your network settings. Error code: 4201".

@Fearyncess
Copy link

Fearyncess commented Nov 20, 2024

oh i see, GI need a hot patch in game. so you should manually unblock dispatchcnglobal.yuanshen.com domain in /etc/hosts for updating...
after updates, you may add hosts blocklist back.
图片

@c02y
Copy link

c02y commented Nov 23, 2024

oh i see, GI need a hot patch in game. so you should manually unblock dispatchcnglobal.yuanshen.com domain in /etc/hosts for updating... after updates, you may add hosts blocklist back. 图片

What is the purpose of blocking dispatchcnglobal.yuanshen.com, what if I delete the line?

@CHN-beta
Copy link
Author

oh i see, GI need a hot patch in game. so you should manually unblock dispatchcnglobal.yuanshen.com domain in /etc/hosts for updating... after updates, you may add hosts blocklist back. 图片

What is the purpose of blocking dispatchcnglobal.yuanshen.com, what if I delete the line?

I do not know. I just unblocked it and everything works fine now.

@CHN-beta
Copy link
Author

CHN-beta commented Nov 25, 2024

oh i see, GI need a hot patch in game. so you should manually unblock dispatchcnglobal.yuanshen.com domain in /etc/hosts for updating... after updates, you may add hosts blocklist back. 图片

What is the purpose of blocking dispatchcnglobal.yuanshen.com, what if I delete the line?

I remember it now. #368 remove this will cause a wine error.

@CHN-beta CHN-beta reopened this Nov 30, 2024
@CHN-beta
Copy link
Author

This issue occured again some days ago. If i banned dispatchcnglobal.yuanshen.com, game will complain "no network connection", but if I unbanned dispatchcnglobal.yuanshen.com, game will crash at startup.

@lilydjwg
Copy link

Don't ban that domain. Instead, disconnect the network before launching, and reconnect just before the window appears.

You can use nmcli or iptables to do it, e.g.:

sudo -v
systemd-run --user --scope --slice=genshin --unit=genshin env DXVK_FRAME_RATE=60 mangohud wine YuanShen.exe -platform_type CLOUD_THIRD_PARTY_PC -is_cloud 1 &
sudo sh -c 'iptables -A OUTPUT -p all -m cgroup --path /user.slice/user-1000.slice/user@1000.service/genshin.slice -j DROP; sleep 5; iptables -D OUTPUT -p all -m cgroup --path /user.slice/user-1000.slice/user@1000.service/genshin.slice -j DROP'
wait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants