#Use shadowrocket to connect iOS to local host server

109 messages · Page 1 of 1 (latest)

arctic dove
#

I have finished hosting a local server and I want to play on my iOS device, I tried mitmproxy and I dont think it work. How can I connect using shadowrocket ?

merry bronze
#

mitmproxy will work but you have to be running mitm on a pc, with your ios network proxy set to that pc

#

shadowrocket you can use the module and just change it to use with your server address

arctic dove
#

I dont know add what to module

merry bronze
arctic dove
#

The guild from resource can still use ?

#

Bc i think it kinda old and maybe outdated

merry bronze
#

The guide there is still accurate

#

it is old but works

arctic dove
#

Ok ty, can i comeback and ask in this post if any error happen ?

merry bronze
#

Sure

arctic dove
#

I cant find the proxy_config.py, i tried download in both grassclipper launcher and on github, even mitm website but I still cant find it.

merry bronze
arctic dove
#

i have to download the whole new grasscutter verion or just 2 those files ?

merry bronze
#

if you already have grasscutter then you don't need it again

#

just the files

#

for the proxy

arctic dove
#

ok

#

after that put them in grasscutter folder ?

merry bronze
#

if you want, doesn't really matter where they are as long as you're running mitmproxy from the folder where they are at

#

in the grasscutter folder keeps it clean and makes sense, but you can really have them anywhere you want as long as they are together and mitm is run from cmd opened there

arctic dove
#

um the proxy that grassclipper download is mitm or another program ?

merry bronze
#

clipper uses mitmproxy

arctic dove
#

IP: 127.0.0.1
Port:22102

#

is that correct ?

#

to add in to config ?

merry bronze
#

Not to connect from mobile no

#

wait actually

#

Address is correct, port is not

#

You do not connect to the game server, you connect to dispatch

#

443

arctic dove
#

oh, ok

#

i got this after run the command....

merry bronze
#

Ok so it looks like you are trying to run that in a folder where you don't have mitmdump

#

Go ahead and open instead the folder where your mitm is and run the command there, you'll need to put proxy.py and proxy_config.py into that same folder

arctic dove
#

now it become this

#

i put them in same folder

merry bronze
#

since you're using powershell do .\mitmdump

#

or open cmd and you can use current command

arctic dove
#

nothing happen

merry bronze
#

with the whole command

#

just adding .\ in front of it

arctic dove
#

what's wrong ?

merry bronze
#

Looks like you didn't root trust the certificate

arctic dove
#

this ?

merry bronze
#

Yeah

#

goes in Trusted Root Certification Authorities

arctic dove
#

ok

#

still got that error

merry bronze
#

Do it for local machine as well as current user

#

and then you can run mitm and visit mitm.it to ensure the cert is properly up to date by getting it there

arctic dove
#

it still not working :((

arctic dove
#

oh, something has changed

#

oh, it works

merry bronze
#

Nice

arctic dove
#

but when i change the proxy config on ios, it seems like there is no internet

#

no internet after change proxy on ios :((

merry bronze
#

You set it to your host machine's local ipv4 address?

#

not 127.0.0.1

arctic dove
#

ofc

#

i'm not that dumb

#

oh, i'm actually dumb

#

i used this address

#

this is the address after using the proxy

#

so i think the proxy work fine

merry bronze
#

You'll want to open cmd and type ipconfig then look at the IPv4 Address there

#

will look something like this

arctic dove
#

oh

arctic dove
#

never getting old

#

yes

#

it works

#

haha

#

ty so much

merry bronze
#

Good to hear it, glad to help

arctic dove
#

wait, sorry for bother you again but after i install the certificate on ios, it still show 4201 on the game.....

merry bronze
#

You're using a patched 3.5 client right?

arctic dove
#

yes

merry bronze
#

4201 is global_get_timeout which means you timed out before reaching the server, does your Grasscutter cmd reflect that your client attempted to connect?

arctic dove
#

seems like it not

merry bronze
#

since you have no ssl cert, your proxy_config.py must have ssl set to false

#

once you do that you'll need to restart mitm

arctic dove
#

where i have to change ?

merry bronze
#

use_ssl

#

at the top

arctic dove
#

it is true

#

i have to set to false ?

#

i've set it to false but it still 4201

#

also nothing in grasscutter cmd

merry bronze
#

Yes you have to close and then re-launch mitm after

arctic dove
#

yes, i've done it but it not working

#

maybe i'll try restart the pc

#

yea it not work, although something realeted to the game appeared in mitm proxy

#

grasscutter showed nothing

arctic dove
#

Um what about shadowrocket, maybe using it will work ?

merry bronze
#

you can try with it

arctic dove
#

Arggg, nothing working