![Umar Hansa](https://web.dev/images/authors/umarhansa.jpg) Umar Hansa [X](https://twitter.com/umaar) [Homepage](https://umaar.com/)

<br />

![Port forwarding allows localhost urls to work on mobile](https://developer.chrome.com/static/blog/port-forwarding/image/port-forwarding-allows-lo-b7cdcafd1d8e6.gif)

1. "Chrome to Phone" your localhost URL from desktop
2. Remote debug the mobile localhost page and enable port forwarding
3. Refresh and observe that no command line was needed!