For locally, you should to change running server from localhost to your PC IP address on project setting, and make sure that your PC (which is executing project) and your mobile are same network.
For cloud running, I faced the same issue with you unfortunately :(.