#Are you able to use IOS/Android to play on the private server?
323 messages · Page 1 of 1 (latest)
You can try charles proxy or proxyman on mobile
ive tried different fiddler scripts turning ssl on and off
still same error, does this just mean it doesnt work or
is there any scripts available for either of them?
I will try run Star rail on mobile and inbox to you later
okie ty ty
Add this line below oS.host
oS.oRequest.headers.UriScheme = "http"```
Then press save script
It is not working
Any chance there will be a tutorial for it?
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
#1163882466805825556
unless u mean mobile
mobile that is
ah
add :443 to ur host
Still getting the same error, could it be because keystore.p12 is local host?? server: 192.168.1.5 and client is 192.168.1.6
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
keystore doesnt matter if ssl is disabled
what part of login are you stuck on
you need to change ur publicaddress/accessaddress
For me like when the game boots it just spits out global dist error
This is the details
similar problem when i try it on my ios
Server: 192.168.1.5, Client: 192.168.1.4 and it uses proxy to 192.168.1.5:8888 (port of fiddler) but login in game,I have global distribution error
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
turn ssl off
it still doesn't work,. Have you tried it on iOS? @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
"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."
It doesn't return any thing :))) after fixed error before
did u install the ssl cert
on ur mobile device
I installed keystore.p12 (lunar) and cert “DO NOT TRUST” of fiddler on mobile
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
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
It's only capturing http traffic cuz they probably don't have "Decrypt HTTPS" turned on
this is one of those steps that i assume u have done
Yeah
Also change UriScheme to https
I turned on "Decrypt HTTPS"
It is not working
Can I see sessions (.saz) while you use mobile connecting to fiddler ?? @heady heron
Fiddler is very unreliable now with devices that aren't rooted I've learnt
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
would the shadowrocket method works on ios
Basically if you can bypass SSL and without touching/modifying the IPA/APK files it should work
hiii i was wondering if u could please share how u got yuukiPS working on android and how we could replicate it? (totally understand if u dont want to) thanks!
Having port 443 always enables ssl from the client side. Regardless of setting the urischeme.
oh? so if we change the port do u think it may work?
ill let you know in like 5 minutes
okie ty ty
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
`
The configuration steps needed to setup the classic Fiddler Classic to capture traffic from iOS devices.
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
You can definitely do it with Shadowrocket
@static forge
just hanging up on the gameserver side of things
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
Well I still can’t get in game.
But I also have a valid ssl cert for the box I’m testing on 😂
😂
[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
@drifting lance i managed to connect to yuukips on ipad!
still cant get my own hosted one working for whatever reason
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
oh i see thank you thank you! ill give it a go
also using your shadowrocket script on ur documentation i added the star rail domains and managed to full login into HSR yuuki ps on ios 
i can post the script here if you'd like
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
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
yeah it seems to work, btw thanks for trying 👍
glad i could be some sort of help
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
for android you also need to change proto dispatch.
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
@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
oh let me try that
@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
it should be forwarding UDP requests
in your config file for the server turn on packet logging
set these last 2 to true
under udp i have enable relay on?
idk if thats correct
is shadowrocket meant to activate a vpn when i enable it?
it should activate a vpn
did you add the certs to both your ios device and enable trust?
and your computer?
yes
for some reason it seems like while shadowrocket activated my ipad cant access my lan?
oh nvm https must not be functioning correctly on my server?
What was the issue?
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
Oh are you using the 1.0 release or the current git commit
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?
Where did you change it?
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
[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
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 
Can someone write specific instructions for connecting an Android or iOS device to a private server :<
Hiya sorry for the wait I was sleeping
Everything looks ok? You are using shadowrocket correct?
For Android conveniently just yesterday a tool was released for android. I think it's not in english tho and I've yet to try it myself but consider giving it a go https://github.com/Xuoos/StarRailProxy
Gotcha, much appreciated for this, will check it after work👍
yes
i'm not sure what's causing the error
how did you managed to connect
did you change ports from 443 ?
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
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
On shadow rocket yeah ssl still off serverside
by https do you mean https decryption
Yeah
In shadow rocket if u go to where you'd generate a certificate there is a option to export
I think I did ctr but both should work?
thx i'll try connect again
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
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?
yea
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
is shadowrocket proxy activated you should see vpn icon if so
yea it does
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
my pc firewall alredy off
damn it's still connecting to the hoyo one for some reason
gotta restart the phone ig
id say restart ur pc aswell
just did
still
not sure what's wrong with shadowrocket
mine version is bought directly from the app store...
double checking stuffs
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)
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
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)
hm
so ur ipad and computer are communicating but star rail is still refusing
does ur server connect if u try and log on on pc
like through cultivation or fiddler
havent try, likely to have error cuz i changed the ip address
do i need to change fiddler address
id say try logging in on ur pc just to see if its an ipad issue
or server issue
sorry not ipad
iphone
yeah most likely
i prefer to use cultivation personally but either way yeah youll need to change to the ip
ah ok so
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```
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
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
np
Oddly it doesn't forward me at all if i do it that way
Oh hm
That's odd have u tried connecting to a already hosted ps?
And seeing if that works
negative
well i can connect fine with cultivation
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?
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
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
Maybe try ProxyMan
I used Shadowrocket to import the module you sent, but it still doesn't work@celest vale
try without / , https://ps.yuuki.me/ should be https://ps.yuuki.me
You can now access the login screen. However, it indicates that the network is abnormal. Please check the network environment and try again
whats the matter? Just download the chinese proxy launcher and play yuuki further, no?
oh, lol
just wrote and then yuuki pops out


