Comments (27)
Can you tell if the network request is going to grasscutter or the official servers?
from grasscutter.
Can you tell if the network request is going to grasscutter or the official servers?
I think all requests are redirected to Grasscutter https://github.com/Grasscutters/Grasscutter/blob/stable/proxy.py#L54
from grasscutter.
Add this Grasscutter.getLogger().info(body);
at around 215 in emu.grasscutter.server.dispatch.DispatchServer
You should see what information is being sent to the server (If it's being sent at all).
from grasscutter.
CN uses slightly different subdomains
from grasscutter.
Add this
Grasscutter.getLogger().info(body);
at around 215 in emu.grasscutter.server.dispatch.DispatchServer You should see what information is being sent to the server (If it's being sent at all).
Now I can see the login request and logged in, so the problem turned to 4206
error code.
from grasscutter.
PC (local) works well, iOS (LAN with WiFi proxy) not work
from grasscutter.
make sure your dispatch server ip and game server IP arent 127.0.0.1
but are your computer's local IP (usually like 192.168.1.x
)
from grasscutter.
make sure your dispatch server ip and game server IP arent
127.0.0.1
but are your computer's local IP (usually like192.168.1.x
)
That's unlikely. But I can connect to the remote server on PC client, why?
from grasscutter.
assuming you have the downloading resource error, this comes from the client not being able to ping the game server (the server on UDP). this is because the game server IP in the grasscutter config is usually 127.0.0.1
. the IP you provide in the config for the game server is what is sent in the region query. if the IP in the region query is 127.0.0.1
, external devices cannot connect.
from grasscutter.
this is quite the common error, so ill be adding this to the troubleshooting wiki soon
also let me know if this fixes your issue
from grasscutter.
assuming you have the downloading resource error, this comes from the client not being able to ping the game server (the server on UDP). this is because the game server IP in the grasscutter config is usually
127.0.0.1
. the IP you provide in the config for the game server is what is sent in the region query. if the IP in the region query is127.0.0.1
, external devices cannot connect.
Got it now, I need to change the address to a LAN accessible one in config.json, right?
from grasscutter.
yep
from grasscutter.
yep
One more question, what if I want to open it on the Public Internet (WAN)?
from grasscutter.
yep
sadly, tried both GameServerIp
& GameServerPublicIp
, still not work
from grasscutter.
listening on 127.0.0.1 (gameserverip) will probably reject any connections other than the localhost
try setting both of the ip sections to your lan ip
from grasscutter.
yep
sadly, tried both
GameServerIp
&GameServerPublicIp
, still not work
also this is extremely weird, i'll have a look at this
from grasscutter.
listening on 127.0.0.1 (gameserverip) will probably reject any connections other than the localhost try setting both of the ip sections to your lan ip
already tried
from grasscutter.
yep
sadly, tried both
GameServerIp
&GameServerPublicIp
, still not work
can you also show your dispatch ip's in this scenario?
from grasscutter.
can you also show your dispatch ip's in this scenario?
- DispatchIp: "127.0.0.1" & DispatchPublicIp: "" & GameServerIp: "127.0.0.1" & GameServerPublicIp: "" -> 4206
- DispatchIp: "127.0.0.1" & DispatchPublicIp: "" & GameServerIp: "192.168.1.100" & GameServerPublicIp: "" -> 4206
- DispatchIp: "127.0.0.1" & DispatchPublicIp: "" & GameServerIp: "127.0.0.1" & GameServerPublicIp: "192.168.1.100" -> 4206
- DispatchIp: "127.0.0.1" & DispatchPublicIp: "192.168.1.100" & GameServerIp: "127.0.0.1" & GameServerPublicIp: "" -> 4206
- DispatchIp: "127.0.0.1" & DispatchPublicIp: "192.168.1.100" & GameServerIp: "127.0.0.1" & GameServerPublicIp: "192.168.1.100" -> 4206
- DispatchIp: "127.0.0.1" & DispatchPublicIp: "192.168.1.100" & GameServerIp: "192.168.1.100" & GameServerPublicIp: "" -> 4206
- DispatchIp: "192.168.1.100" -> mitmproxy error: 127.0.0.1:443 server refused
from grasscutter.
DispatchIp: "192.168.1.100" & GameServerIp: "192.168.1.100" with public ip's empty, have you tried this?
from grasscutter.
Proxy will always error if DispatchIp is not 127.0.0.1
from grasscutter.
i think the proxy errors out because genshin tries to query the dispatch ip that it receives, and in that case that would be 127.0.0.1
from grasscutter.
if you listen on 127.0.0.1 (on ip's that are not public), then no other device can connect to your server
from grasscutter.
the public ip section just changes the ip's that are sent to the client
from grasscutter.
if you listen on 127.0.0.1 (on ip's that are not public), then no other device can connect to your server
but if I listen on other ip, localhost can't connect🤔
from grasscutter.
that's also weird, this whole thing is very weird
from grasscutter.
Fixed #78
from grasscutter.
Related Issues (20)
- 游戏服务器端口拒绝连接 HOT 1
- 版本更新请求 HOT 12
- [Bug] Missing Scripts HOT 1
- [Bug] 烹饪j界面看不到任何食材,核心1.7.4 HOT 1
- [Bug] ley line is missing in the game
- [Bug] 怎么在多个IP上启动服务器
- [Bug] Can’t change language to Japanese-Jp
- [Bug] Newly registered accounts play the opening storyline twice.新注册的账号会播放两遍开场剧情
- 如何重置珍珠纪行奖励和时间,重新新的一轮奖励获取? How to reset the Pearl Battle Pass rewards and time, and obtain a new round of rewards?
- 流明石触媒无法升级。 HOT 1
- [Bug] Memory leak 内存泄露
- [Bug] 如何重置珍珠纪行奖励和时间,重新新的一轮奖励获取? How to reset the Pearl Battle Pass rewards and time, and obtain a new round of rewards?
- [Bug] Call unchecked GetServerTime HOT 2
- [Bug] 角色q技能图标一直闪烁,按住前进角色一顿一顿的需要怎么解决
- [Bug] spiralabyss Countdown error HOT 1
- [Bug] 传送用不了
- project HOT 1
- [Feature Request] 怎么一键点亮所有的神像和传送锚点? HOT 1
- [Bug] GenerateEffectiveLombokConfig
- How to adapt a hot update to a GC HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grasscutter.