-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
[Bug] Failed to connect to LAN Server if the dispatch server accessAddress is set to LAN Address #836
Comments
Server Log: [15:19:30] [INFO] Welcome to Grasscutter 15:19:33 INFO:StdSchedulerFactory Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' |
Mitmproxy Log: |
My current config.json: |
Use chocolatey and see the version of the tools you are using. your build file needs to point to correct ip else it will fail. see failover mech error in any IT book or computer book. |
that same with me, Server Online, user can request login. but still got error 4206 |
https://www.inverse.com/gaming/genshin-impact-servers-down-error-code-4206-status refer to this if you are using gaming as a app else use nosql and add norton+ another antivirus in your webbrowser. Else you need to have hoxhunt installed as an additional tool. This error comes if there is an external attempt for malware ex: trojan. |
*Also dont try to login to another system unless you are authorized. Please note it could result in plagirsm and legal issues. So try to deploy only in your local systems. |
Here is my guess: If you use LAN IP address. The mitmproxy may not perform Man-in-the-Middle(MitM) decipher and then cipher your request(this will tamper the SSL certifacte actually). Which essentially means that in this case, the certificat passed to your Mobile device is the Poential solution for you:
一点猜测: 如果你使用内网IP,mitmproxy在这种情况下可能不会去接管这个请求。结果就是你的请求返回的结果,是使用了grasscutter附带SSL证书,而非之前信任过的mitm证书。如果你把accessAddress设置成米哈游的域名,mitm就能够接管这个请求而后替换证书了。 可能的解决方案:
|
For moderator: I don't think this is a bug. It might be a misconfiguration for proxy server. |
There are so many users using mitmproxy as proxyServer from readme.md. |
I was not trying to blame the users. Myself also on the mitmproxy. I don't get the point for you to blame me. I did explain the reason for his error and provide solutions. The message for moderator is just try to remove the |
找到解决方法了,好像确实是因为mitm配置的问题。
Update: 同时修改mitmproxy启动参数以去掉
|
I will post this issue to GrassClipper and close this issue at there |
Describe the bug
Failed to connect to LAN Server if the dispatch server accessAddress is set to LAN Address
Which branch did you use?
development branch v1.1.1 - commit 98066f5
Client version
OSRELWin2.6.0 (Global)
Env
mongodb-win32-x86_64-windows-5.0.8
Eclipse Adoptium
openjdk 17.0.2 2022-01-18
OpenJDK Runtime Environment Temurin-17.0.2+8 (build 17.0.2+8)
OpenJDK 64-Bit Server VM Temurin-17.0.2+8 (build 17.0.2+8, mixed mode, sharing)
Traffic Hijacker
GrassClipper-v0.9.8 - mitmproxy
Details
客户端在通过局域网连接时会报错代码4206,而在修改 config.json -> server -> dispatch -> accessAddress 为proxy.py内任意(不确定)一个域名后便可成功从局域网连接。
(同时把 config.json -> server -> game -> accessAddress 修改为局域网IP地址)
Client failed to connect to a local lan server and gives out error code 4206, but after changing "config.json -> server -> dispatch -> accessAddress" to any domain (not sure) in the domain list of "proxy.py". The client will then be able to connect to the server
(Also changed "config.json -> server -> game -> accessAddress" to my LAN address)
Screenshots
The text was updated successfully, but these errors were encountered: