Giter Site home page Giter Site logo

Comments (27)

4Benj avatar 4Benj commented on April 28, 2024

Can you tell if the network request is going to grasscutter or the official servers?

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

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.

4Benj avatar 4Benj commented on April 28, 2024

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.

memetrollsXD avatar memetrollsXD commented on April 28, 2024

CN uses slightly different subdomains

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

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.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

image
PC (local) works well, iOS (LAN with WiFi proxy) not work

from grasscutter.

KingRainbow44 avatar KingRainbow44 commented on April 28, 2024

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.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

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)

That's unlikely. But I can connect to the remote server on PC client, why?

from grasscutter.

KingRainbow44 avatar KingRainbow44 commented on April 28, 2024

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.

KingRainbow44 avatar KingRainbow44 commented on April 28, 2024

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.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

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.

Got it now, I need to change the address to a LAN accessible one in config.json, right?

from grasscutter.

KingRainbow44 avatar KingRainbow44 commented on April 28, 2024

yep

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

yep

One more question, what if I want to open it on the Public Internet (WAN)?

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

yep

sadly, tried both GameServerIp & GameServerPublicIp, still not work
IMG_20220421_010338__01
IMG_20220421_010620

from grasscutter.

lilmayofuksu avatar lilmayofuksu commented on April 28, 2024

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.

lilmayofuksu avatar lilmayofuksu commented on April 28, 2024

yep

sadly, tried both GameServerIp & GameServerPublicIp, still not work IMG_20220421_010338__01 IMG_20220421_010620

also this is extremely weird, i'll have a look at this

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

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.

lilmayofuksu avatar lilmayofuksu commented on April 28, 2024

yep

sadly, tried both GameServerIp & GameServerPublicIp, still not work IMG_20220421_010338__01 IMG_20220421_010620

can you also show your dispatch ip's in this scenario?

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

can you also show your dispatch ip's in this scenario?

  1. DispatchIp: "127.0.0.1" & DispatchPublicIp: "" & GameServerIp: "127.0.0.1" & GameServerPublicIp: "" -> 4206
  2. DispatchIp: "127.0.0.1" & DispatchPublicIp: "" & GameServerIp: "192.168.1.100" & GameServerPublicIp: "" -> 4206
  3. DispatchIp: "127.0.0.1" & DispatchPublicIp: "" & GameServerIp: "127.0.0.1" & GameServerPublicIp: "192.168.1.100" -> 4206
  4. DispatchIp: "127.0.0.1" & DispatchPublicIp: "192.168.1.100" & GameServerIp: "127.0.0.1" & GameServerPublicIp: "" -> 4206
  5. DispatchIp: "127.0.0.1" & DispatchPublicIp: "192.168.1.100" & GameServerIp: "127.0.0.1" & GameServerPublicIp: "192.168.1.100" -> 4206
  6. DispatchIp: "127.0.0.1" & DispatchPublicIp: "192.168.1.100" & GameServerIp: "192.168.1.100" & GameServerPublicIp: "" -> 4206
  7. DispatchIp: "192.168.1.100" -> mitmproxy error: 127.0.0.1:443 server refused

from grasscutter.

lilmayofuksu avatar lilmayofuksu commented on April 28, 2024

DispatchIp: "192.168.1.100" & GameServerIp: "192.168.1.100" with public ip's empty, have you tried this?

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

Proxy will always error if DispatchIp is not 127.0.0.1

from grasscutter.

lilmayofuksu avatar lilmayofuksu commented on April 28, 2024

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.

lilmayofuksu avatar lilmayofuksu commented on April 28, 2024

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.

lilmayofuksu avatar lilmayofuksu commented on April 28, 2024

the public ip section just changes the ip's that are sent to the client

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

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.

lilmayofuksu avatar lilmayofuksu commented on April 28, 2024

that's also weird, this whole thing is very weird

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 28, 2024

Fixed #78

from grasscutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.