If you are using a real device and still facing the problem, follow these steps as these steps help me to solve the issue:
- Make sure both the mobile device and the laptop are on the same WiFi network.
- verify your targeted URL has a port number, something like this:
https://localhost:44301
- run this command on the Android Studio terminal,
adb reverse tcp:44301 tcp:44301
- replace
44301
with yourport number
Hopefully, you will be able to run without any issue.
Happy codding