Port Forwarding with Ngrok

Scenario: You're building a mobile app solo. The backend is ready, and now you're working on the UI. You run your server locally and try making requests from the app—nothing works. Why? Your base URL (http://localhost: or http://127.0.0.1:) points to your local machine, but your mobile device has its own localhost. Realizing this, you deploy your backend to a free online service, but then: The server shuts down after minutes of inactivity. Network requests are painfully slow. Ngrok to the rescue

Feb 23, 2025 - 11:45
 0
Port Forwarding with Ngrok

Scenario:

You're building a mobile app solo. The backend is ready, and now you're working on the UI. You run your server locally and try making requests from the app—nothing works.

Why? Your base URL (http://localhost: or http://127.0.0.1:) points to your local machine, but your mobile device has its own localhost.

Realizing this, you deploy your backend to a free online service, but then:

  • The server shuts down after minutes of inactivity.
  • Network requests are painfully slow.

Ngrok to the rescue