#Getting error 4206 after following all guides

65 messages · Page 1 of 1 (latest)

idle dome
#

I'm really running out of ideas now, I don't know if this is already solved somewhere else, but after disabling SSL, opening all ports in both the windows defender firewall and the routervm, i still get troubles connecting... This happens on both Grasscutter and Cultivation servers.

fair lotus
#

Cultivation is grasscutter, but you need to be more specific about your setup

#

Local? External? Game version?

idle dome
#

External server, Game version 3.2, using this server
#resources message

#

It's a windows 10 virtual machine, which is behind a NAT router vm to access the internet, all ports have been forwarded in that too

fair lotus
#

Ok hold on, you're hosting that server on an external network and connecting to it from your normal machine?

idle dome
#

yup, that's the plan

fair lotus
#

Ok you first should not use Cultivation for it then, use mitm or fiddler

#

Then did you configure the server to be hosted that way?

#

If you left on it default then it's hosting on localhost still

idle dome
#

It has a local mongodb installed, but i didn't yet install either fiddler or mitm

#

So do i change the "accessAddress" to be the IP of the server?

fair lotus
#

Yes

idle dome
#

the public one or the one given to it via dhcp

fair lotus
#

That is answered in the pinned post by the way, though the solution there is using hamachi the steps are exactly the same if you host it on a different ip

idle dome
#

okay, i will try to use fiddler

fair lotus
#

You change it to whatever you are connecting to

#

if you're connecting to the public ip then change it to that, etc

#

You will need to enable useEncryption and useInRouting again

idle dome
#

but i don't see any pins

#

well okay, tbf there is not much in there either

fair lotus
#

Pinned post in #1019987283593674883, not pinned messages in this thread

idle dome
#

okay now it's 4214, i'll check what that is and reply back if i can solve it

fair lotus
#

Just need to patch game, the pinned post has the instructions at the top of the list

idle dome
#

unclear if i should put the UA in client or on server client

fair lotus
#

It's client, there is no UA on the server

idle dome
#

okay now it times out, that's a start

fair lotus
#

Did you change both the server and the game access addresses? If you only changed server you'll time out trying to reach game

#

The game access address is just lower down in the config

idle dome
#

I did change both of them, however i didn't set the accessPort, do i need to set those too?

#

the bindAddress is still 0.0.0.0 with the ports set

#

I assigned the server a public static IP instead of a private NATed IP

fair lotus
#

Leave everything else on default, only change accessAddresses

idle dome
#

both are on the 148.251.xx.xx address

fair lotus
#

then make sure you also have useEncryption and useInRouting set to true, and are connecting with either fiddler or mitm fully set up

idle dome
#

is fiddler to be installed on the client side or the server side? Can you maybe link me a guide to it that i can follow?

fair lotus
#

proxy is for the client, server doesn't need anything other than grasscutter and its prereqs of java/mongodb

idle dome
#

okay now what do i do about 504

#

i did set the encryption to true and installed fiddler, added the script and launched it

fair lotus
#

did you restart the server after changing useEncryption and useInRouting? Won't apply until restart

idle dome
#

yup

#

is this correct, with oS.host replaced with the IP of the server?

fair lotus
#

That is correct

idle dome
#

okay, still getting a white screen and then a timeout, despite using the regular client, i accepted the warnings in the fiddler too

fair lotus
#

You will see the connection requests in your server console

#

ok that is good at least, if you got the cert chain warnings then the connection is being made

idle dome
#

do i need to change the python proxy script too?

#

it's currently on False for the SSL

fair lotus
#

No that is for mitm

idle dome
#

okay so both useEncryption and useInrouting are true, the server has been restarted between that change and fiddler is running

#

does the address in oS.host.Equals need to be changed?

fair lotus
#

it needs to be the same as the accessAddress you've set the server to host on

#

oh you mean in there, no

#

just the oS.host = localhost needs to be changed

idle dome
#

yea that's done

fair lotus
#

if you change the other ones (the ones being redirected) you won't connect at all

idle dome
#

i see some requests being made to the server, all returning 200

#

but still timing out after a few seconds

fair lotus
#

You may need to go to config.json and remove the dispatch region there

#

so that it is just

"regions": [],
"defaultName": "Grasscutter",```
idle dome
#

okay, now restarting it

#

ayy i got the intro, thanks a lot for the help, it seems to work now