#Are you able to use IOS/Android to play on the private server?

323 messages · Page 1 of 1 (latest)

static forge
#

I know you used to be able to before when genshin PS first became public so im just wondering if thats the case with this one?

cold estuary
iron condor
#

You can try charles proxy or proxyman on mobile

heady heron
#

fiddler works on mobile

#

run it on your computer and connect from your mobile device

static forge
#

im getting global distribution error, SSL is disabled

#

script im using

static forge
#

ive tried different fiddler scripts turning ssl on and off

#

still same error, does this just mean it doesnt work or

static forge
iron condor
static forge
#

okie ty ty

restive garden
#

Then press save script

iron condor
#

global distribution error

warped magnet
#

Any chance there will be a tutorial for it?

iron agate
#

hoping to do use it with my bought shadowrocket on ios

#

i just need to know the steps required since idk how to check if something working or not

#

got global distribution error on my phone today but somehow vpn profile stopped working and star rail just login as usual

heady heron
#

unless u mean mobile

warped magnet
heady heron
#

ah

heady heron
iron condor
static forge
#

I tried so many different things last night I tried 2 different fiddler scripts one from git and one from here tried changing https to http

#

Downloaded keystore.p12

#

And it just won't

#

So I'm thinking it might just be fiddler being fiddler but the problem is i dont think there is scripts for any other program and im dumb and cant make my own lol

heady heron
#

what part of login are you stuck on

#

you need to change ur publicaddress/accessaddress

static forge
#

For me like when the game boots it just spits out global dist error

#

This is the details

iron agate
#

similar problem when i try it on my ios

iron condor
iron agate
#

i tried changing gameserver and httpserver in the json, is there anything else needed.

#

using the address of the pc i'm hosting the server

heady heron
#

send config.json

#

any of you

iron condor
heady heron
iron condor
#

it still doesn't work,. Have you tried it on iOS? @heady heron

heady heron
#

i dont own hsr on ios lol

#

global dist error u say

#

server might not be handling public addresses correctly

#

ill have to check

iron condor
#

I think I just found the problem :)))

iron agate
#

what did you find

#

didn't know fiddler works on ios

#

i might try it ig

iron condor
#

"fiddler.network. The handshake failed due to an unexpected packet format."

#

You can use Fiddler and show your error

#

My error is "fiddler.network.https> HTTPS handshake to 192.168.1.5 (for #2328) failed. System.IO.IOException The handshake failed due to an unexpected packet format."

iron condor
#

It doesn't return any thing :))) after fixed error before

static forge
#

Yeah that's what I saw

#

It seems like it can't connect

heady heron
#

on ur mobile device

iron condor
heady heron
#

not sure if u did it properly

#

the fact that its only capturing http handshakes

#

means that your ssl is misconfigured somewhere

#

and its not lunar core

iron condor
#

i think it's because of keystore.p12 (which is localhost - 127.0.0.1), I need to build a new keystore.p12

#

How was keystore.p12 initially built?? I want to rebuild into another domain

restive garden
heady heron
restive garden
#

Yeah

restive garden
iron condor
#

I turned on "Decrypt HTTPS"

#

It is not working

#

Can I see sessions (.saz) while you use mobile connecting to fiddler ?? @heady heron

static forge
#

Fiddler is very unreliable now with devices that aren't rooted I've learnt

celest vale
#

you need root to bypass ssl with a proxy like mitm,fiddler or you can mod the apk to be able to bypass ssl and without root but when you do that, i'm pretty sure it will foce close. sr android is very sensitive for mods

iron agate
#

would the shadowrocket method works on ios

celest vale
#

Basically if you can bypass SSL and without touching/modifying the IPA/APK files it should work

static forge
drifting lance
#

Having port 443 always enables ssl from the client side. Regardless of setting the urischeme.

static forge
drifting lance
#

ill let you know in like 5 minutes

static forge
#

okie ty ty

drifting lance
#

fiddler is angry trying to do it that way

#

But works fine on local to my remote its just throwing that same error it hought it was just because the root cert wasn't trusted so i installed it following these instructions

#

`

#

These ones

#

instead i was getting these errors
HTTPS handshake to <myhostname> (for #27)failed. System.Security.Authentication.AuthenticationException A call to SSPI failed, see inner exception

#

so i tried following the instructions for YuukiPS. and it just seems to skip over the module all together

#

using shadowrocket

#

and just connects to retail

#

oop looks like it wasn't forwarding with shadow rocket

#

becuase i forgot to trust that rootCA

drifting lance
#

You can definitely do it with Shadowrocket

#

@static forge

#

just hanging up on the gameserver side of things

static forge
#

Oh cool!!

#

When u can could u teach me how to do with shadow rocket?

#

Tysm for spending time experimenting with this either way @drifting lance

drifting lance
#

Well I still can’t get in game.

#

But I also have a valid ssl cert for the box I’m testing on 😂

static forge
#

😂

#
[URL Rewrite]
^https:\/\/([\da-z-.]+).hoyoverse.com https://localhost:443 header
^https:\/\/([\da-z-.]+).mihoyo.com https://localhost:443 header
^https:\/\/([\da-z-.]+).starrails.com https://localhost:443 header
^https:\/\/([\da-z-.]+).bhsr.com https://localhost:443 header
^https:\/\/hoyoverse.com https://localhost:443 header
^https:\/\/mihoyo.com https://localhost:443 header
^https:\/\/starrails.com https://localhost:443 header
^https:\/\/bhsr.com https://localhost:443 header

[MITM]
hostname = %APPEND% .hoyoverse.com,.mihoyo.com,.starrails.com,.bhsr.com```
#

did i do this right lol

#

ive never used shadowrocket in my life lol

static forge
#

@drifting lance i managed to connect to yuukips on ipad!

#

still cant get my own hosted one working for whatever reason

celest vale
# static forge hiii i was wondering if u could please share how u got yuukiPS working on androi...

as I said there are two methods, the method I use currently uses apk modification without decompiling so I just open the apk with zip then re-sig, you need to modify two files ClientConfig.bytes using the hxd tool then server_env_config.json then change all domains to your server and make sure the server domain must have SSL. Another way is to use a proxy such as MITM, Fiddler, ShadowRocket. Make sure that if the domain server have ssl, you have to find a way to bypass SSL. The second method is actually simpler, but without root it will be more difficult. what's more android 13+ is more complicated to bypass ssl stuff idk if there is a better solution​

static forge
#

i can post the script here if you'd like

celest vale
#

yes, wait have you successfully logged in with ios then downloaded res data?. + in config.json in downloadData you also have to adjust it so that it can download res

static forge
#

oh i already had resources downloaded from a successful official log in on my ipad

#

[URL Rewrite]
^https://([\da-z-.]+).hoyoverse.com https://ps.yuuki.me/ header
^https://([\da-z-.]+).mihoyo.com https://ps.yuuki.me/ header
^https://([\da-z-.]+).starrails.com https://ps.yuuki.me/ header
^https://([\da-z-.]+).bhsr.com https://ps.yuuki.me/ header
^https://hoyoverse.com https://ps.yuuki.me/ header
^https://mihoyo.com https://ps.yuuki.me/ header
^https://starrails.com https://ps.yuuki.me/ header
^https://bhsr.com https://ps.yuuki.me/ header

[MITM]
hostname = %APPEND% .hoyoverse.com,.mihoyo.com,.starrails.com,.bhsr.com```
#

but yeah this works im in game rn

celest vale
#

yeah it seems to work, btw thanks for trying 👍

static forge
#

glad i could be some sort of help

drifting lance
#

Weird my script is identical but it doesn’t let me actually connect to my local server I’m assuming it’s because it’s missing something related to iOS

#

With lunar core

celest vale
#

for android you also need to change proto dispatch.

drifting lance
#

im on ios

#

looks like this is where i hang sadge

drifting lance
#

this seems to be where me paths diverge

#

as far as unhandled packets

#

so whatever should trigger the ClientObjUploadReq is not triggering on IOS but works on pC

static forge
#

@drifting lance Quick question what url did u put down for download data bc i managed to make a connection but im stuck where the game would download any available assets and idk if there is a cdn i can point to

drifting lance
#

I didn't put anything down

#

i logged in once on retail

static forge
#

oh let me try that

static forge
#

@drifting lance is there a way to make shadowrocket still apart of my local network bc what i found for me was if i used something like ngrok to tunnel port 443 i could log in but the game would hang afterwards and ig its bc the actual game server is on another port which isnt tunnelled

drifting lance
#

it should be forwarding UDP requests

#

in your config file for the server turn on packet logging

#

set these last 2 to true

static forge
#

idk if thats correct

#

is shadowrocket meant to activate a vpn when i enable it?

drifting lance
#

it should activate a vpn

#

did you add the certs to both your ios device and enable trust?

#

and your computer?

static forge
#

yes

#

for some reason it seems like while shadowrocket activated my ipad cant access my lan?

static forge
#

oh nvm https must not be functioning correctly on my server?

static forge
#

@drifting lance i did it

#

im in game

drifting lance
#

What was the issue?

static forge
#

i literally dont know

#

well i manage to get in game

#

and move but then its like the connection dies

#

so close yet so far

drifting lance
#

Oh are you using the 1.0 release or the current git commit

static forge
#

oh i fixed iit i believe/

#

so basically what would happen was like

#

shortly after logging in i would get 999 ping

#

and connection loop

#

so what i did was change every instance of localhost

#

to my computers ip

#

and sure enough

#

it seems like its working?

drifting lance
#

Where did you change it?

static forge
#

in server config json

#

every instance of localhost

#

including mongodb ip

#

i changed to my computers ip

#

[URL Rewrite]
^https://([\da-z-.]+).hoyoverse.com http://[Server_IP]:443/ header
^https://([\da-z-.]+).mihoyo.com http://[Server_IP]:443/ header
^https://([\da-z-.]+).starrails.com http://[Server_IP]:443/ header
^https://([\da-z-.]+).bhsr.com http://[Server_IP]:443/ header
^https://hoyoverse.com http://[Server_IP]:443/ header
^https://mihoyo.com http://[Server_IP]:443/ header
^https://starrails.com http://[Server_IP]:443/ header
^https://bhsr.com http://[Server_IP]:443/ header

[MITM]
hostname = %APPEND% .hoyoverse.com,.mihoyo.com,.starrails.com,.bhsr.com```
#

Change [server IP] to ur computers ip

#

disable ssl

#

Change every instance of local host in Server config to

#

computer ip

iron agate
#

[URL Rewrite]
^https://([\da-z-.]+).hoyoverse.com http://192.168.1.30:443/ header
^https://([\da-z-.]+).mihoyo.com http://192.168.1.30:443/ header
^https://([\da-z-.]+).starrails.com http://192.168.1.30:443/ header
^https://([\da-z-.]+).bhsr.com http://192.168.1.30:443/ header
^https://hoyoverse.com http://192.168.1.30:443/ header
^https://mihoyo.com http://192.168.1.30:443/ header
^https://starrails.com http://192.168.1.30:443/ header
^https://bhsr.com http://192.168.1.30:443/ header

[MITM]
hostname = %APPEND% .hoyoverse.com,.mihoyo.com,.starrails.com,.bhsr.com```
#

i set those last 2 to true

#

still having the error

#

changed all local ip to my pc's address

#

what am i missing

#
#

this is my config.js

south smelt
# celest vale as I said there are two methods, the method I use currently uses apk modificatio...

Hiya, I am android user and tried to edit these two file and also add a line about /*/query_dispatch in Httpserver.java of server file. However, on my client apk side, the game was just very quick to crash and quit by itself, I some time can get the game go to hoyoverse login page and do the login, but it will still crash later, it's that something related to SSL setting? Thanks for any advice praycat

livid steeple
#

Can someone write specific instructions for connecting an Android or iOS device to a private server :<

static forge
#

Everything looks ok? You are using shadowrocket correct?

static forge
south smelt
iron agate
#

i'm not sure what's causing the error

#

how did you managed to connect

#

did you change ports from 443 ?

static forge
#

Oh I forgot to mention but did u install the ca certificate on both ur computer and ipad?

#

And on ipad make sure to trust the certificate

iron agate
#

i did install the CA on the phone

#

but pc idk

#

it's not related to fiddler right?

static forge
#

No

#

What u can do is export the certificate and then send it to urself somehow I used my alt on discord

#

And install it on ur computer

#

Also enable https in shadowrocket

#

Once I have a proper idea of what needs to be done I'll attempt at writing a proper explained guide

iron agate
#

kk

#

so i'm enabling https ?

#

SSL still off ?

static forge
#

On shadow rocket yeah ssl still off serverside

iron agate
#

by https do you mean https decryption

static forge
#

Yeah

iron agate
#

yea i think i already did that

#

ic

#

i'll search about exporting the cert

static forge
#

In shadow rocket if u go to where you'd generate a certificate there is a option to export

iron agate
#

CTR or PKCS12

#

i found it

static forge
#

I think I did ctr but both should work?

iron agate
#

thx i'll try connect again

static forge
#

You'll know its working if when star rail tries to connect ur ios device will ask "allow star rail to access devices on ur local network" and you click allow

iron agate
#

still global distribution error

#

there's no pop up hmmm

#

i'll try restart the pc

static forge
#

just for troubleshooting sake did u also download resources by logging into official atleast once on ur phone

#

@iron agate this is how my config json currently looks try changing my ip to ur ip and see if it changes things?

iron agate
#

i'm trying to connect to the server i toggled my wifi and now it's not connecting to the local server for some reason

#

it's connecting to the hoyoverse one

#

might try a restart ig

static forge
#

is shadowrocket proxy activated you should see vpn icon if so

iron agate
#

yea it does

static forge
#

thats odd

#

ig also make sure ur computer isnt blocking connection through firewall

#

other than that im not entirely sure ill check my shadowrocket

#

to see if i imissed something

iron agate
#

my pc firewall alredy off

#

damn it's still connecting to the hoyo one for some reason

#

gotta restart the phone ig

static forge
#

id say restart ur pc aswell

iron agate
#

just did

static forge
#

sometimes a restart can change things

#

okie

iron agate
#

still

#

not sure what's wrong with shadowrocket

#

mine version is bought directly from the app store...

#

double checking stuffs

static forge
#

hm uh ig u can check to make sure ur iphone is still being seen by ur network while shadowrocket is activated there are multiple ways but the way i did it

was just by going to snapdrop.net on both pc and iphone/ipad and if it popped up you know its working

if not then for some reason ur iphone and or pc cant communicate

#

is enable relay activated under udp also (not sure if thats on by default)

iron agate
#

i have it on

#

i'll check snapdrop

#

it works fine usually

#

i use it all the time

#

i'll try create a new CA certificate

static forge
#

yeah im trying to think what could be the issue unfortunately i dont have an ios device specifically so i cant replicate the circumstances

this is a longshot but do u happen to have mobile data on? ik the wifi symbol is showing but i read somewhere that having it on either way can sometimes mess with things (idk if this is true but i saw it whilst googling yesterday)

iron agate
static forge
#

hm

iron agate
#

seems fine

#

this is picture from my pc

static forge
#

so ur ipad and computer are communicating but star rail is still refusing

iron agate
#

i have wifi and bluetooth on

#

no lte data

static forge
#

does ur server connect if u try and log on on pc

#

like through cultivation or fiddler

iron agate
#

havent try, likely to have error cuz i changed the ip address

#

do i need to change fiddler address

static forge
#

id say try logging in on ur pc just to see if its an ipad issue

#

or server issue

#

sorry not ipad

#

iphone

iron agate
#

do i need to change fiddler script

#

to 192.168.1.30

static forge
#

yeah most likely

#

i prefer to use cultivation personally but either way yeah youll need to change to the ip

iron agate
static forge
#

ah ok so

iron agate
#

ah is this ip

#

correct

#

do i need to put :443

static forge
#

id assume so although the fiddler script ive seen normally has somewhere to put the port itself on its own but it shouldnt change things?

#

atleast this way we ruled out that the iphone is the issue

#

if im being honest tho i normally dont have amazing results with fiddler on pc if u have cultivation id say try that instead

#

another way to check if the script is working as it should on ipad is to change it to a public hsr private server such as ps.yuuki.me and see if it connects

#

[URL Rewrite]
^https://([\da-z-.]+).hoyoverse.com https://ps.yuuki.me/ header
^https://([\da-z-.]+).mihoyo.com https://ps.yuuki.me/ header
^https://([\da-z-.]+).starrails.com https://ps.yuuki.me/ header
^https://([\da-z-.]+).bhsr.com https://ps.yuuki.me/ header
^https://hoyoverse.com https://ps.yuuki.me/ header
^https://mihoyo.com https://ps.yuuki.me/ header
^https://starrails.com https://ps.yuuki.me/ header
^https://bhsr.com https://ps.yuuki.me/ header

[MITM]
hostname = %APPEND% .hoyoverse.com,.mihoyo.com,.starrails.com,.bhsr.com```
iron agate
#

i'll try that one, thx

#

seems like im getting pointed to hoyo server for unknown reason

#

i'll probably try again tmr

#

kinda late here

static forge
#

thats fair it took some time and alot of testing various things out for me to get it to work im not even entirely sure what made it work in the first place i cannot lie

iron agate
#

np

drifting lance
static forge
#

Oh hm

drifting lance
#

you'd think i could figure it out but noooo

static forge
#

That's odd have u tried connecting to a already hosted ps?

#

And seeing if that works

drifting lance
#

negative

static forge
#

Try that

#

If u can connect

#

Then it's something on the servers end

drifting lance
#

well i can connect fine with cultivation

static forge
#

I'm not entirely sure then did u check udp tunneling and decrypting https traffic is on on shadowrocket?

#

And installing cert and trusting cert?

drifting lance
#

Yup.

#

Im using the latest version of ShadowRocket

#

not sure if it matters

static forge
#

im not really sure tbh like genuinely idk what made it work i just kept messing with stuff till the game liked what it was getting

#

@celest vale helloo was wondering if i could dm u real quick i have some questions about like domains/sub-domains in relation to hsr

#

actually nvm they ended up opening a support thread for what i wanted to ask lol

static forge
#

has anyone gotten the the star rail proxy apk working i cant figure out how to download game data

#

the button is greyed out

#

figured it out

sudden geode
#

Maybe try ProxyMan

brave nimbus
#

I used Shadowrocket to import the module you sent, but it still doesn't work@celest vale

celest vale
#

try without / , https://ps.yuuki.me/ should be https://ps.yuuki.me

brave nimbus
#

You can now access the login screen. However, it indicates that the network is abnormal. Please check the network environment and try again

vapid raptor
#

whats the matter? Just download the chinese proxy launcher and play yuuki further, no?

vapid raptor
#

just wrote and then yuuki pops out