Your phone and pc need to be on the same wifi network, and your firewall needs to allow communication.
Also have a look at some common issues
If it is an option: use PWA instead. Saves you a ton of native-crap in styling in js, creating packages, humbling bowing down to appstores and their authentication and having to endure software bugs. PWA: just switch on the light.