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#
- Connect your phone to your laptop using a USB cable
- Enable
USB tethering
- Android: System settings > Network & internet > Hotspot & tethering > USB tethering
- Start your react server on your laptop
npm start
- 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!