0

I am trying to build a react-native-app on a vagrant linux box.

I am trying to access the app on my phone using expo but it just does not work.

Has anyone managed to make this work with port forwarding or something similar?

ThierryMichel
  • 487
  • 1
  • 5
  • 20

2 Answers2

0

You need to have the linux box on the same network as the phone.

Quinlan Jung
  • 156
  • 5
0

To make this a little more specific, the vagrant file should include the following line(the ip address is optional): config.vm.network "public_network", ip: "ip address"

for example:

  1. config.vm.network "public_network"
  2. config.vm.network "public_network", ip: "192.168.1.9"

Here are a couple of useful links:

  1. Youtube tutorial by sureshkm

  2. Vagrant docs

ThierryMichel
  • 487
  • 1
  • 5
  • 20