Skip to main content

Test React app on mobile without Wi-Fi

·1 min
React Offline Tips
Table of Contents

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!

Jeroen Mols
Author
Jeroen Mols
Jeroen Mols is a Google Developer Expert (GDE) in Android, the former lead Android developer at Philips Hue and an internationally recognized speaker. He is currently pushing his boundaries as a full stack developer at Plaid.