Tip: TailScale
When developing, you often need to connect to your development computer from your phone. In such cases, you need to connect to the same router or use a program like ngrok to connect to your development computer.
However, there is another method, and this one is the most convenient and free. It involves using a virtual private network (VPN) service called Tailscale. After logging in and registering your device, each device is assigned an IP address.
After running the server on your development laptop, you can check the IP address of the device in the Tailscale app and connect to it using that IP address, as shown in the screenshot, to access the development server.
This is also the best option when creating a service that only you can access, as you don't need to set up complex external access settings. Install Tailscale on the specific device, deploy the service, and connect. Installing Tailscale on the server can also be done with a single line of script, making it very convenient.