Test React app on mobile without Wi-Fi

19 Nov 2022

Test React app on mobile without Wi-Fi

less than 1 minute read

Traveling by train or plane and want to test your react app on your mobile phone? This quick post explains how to access your react development server from your phone without a Wi-Fi connection.

Steps

  1. Connect your phone to your laptop using a USB cable
  2. Enable USB tethering
    • Android: System settings > Network & internet > Hotspot & tethering > USB tethering
  3. Start your react server on your laptop npm start
  4. Open your servers ip:port on your phone

That’s it!

If this was helpful to you, consider buying me a coffee or thanking me on Mastodon or Twitter!

Leave a Comment

Start a conversation about this content on Reddit or Hacker News.