Connect to expo server from emulator in separate computer, over LAN

I would like to have the following development setup:

  • Run expo server from computer 1.
  • Connect computer 1 and computer 2 to the same wifi network.
  • Run android emulator or ios simulator on computer 2.
  • From said virtual device (running in computer 2), open the ExpoGo app and load the development app being built by the expo server in computer 1.

Any ideas of how this can be accomplished? Anybody ever try this before?

This is possible if you run expo start in LAN mode. By default, it starts in localhost mode, making it only accessible to local/connected devices.

You can use expo start --lan to start in LAN mode, you will see in the console output that the CLI has switched to your lan ip address.