How do i tell my expo client app on the phone to use localhost instead of the default exp:// address in XDE?


(question from Slack)

You can click the gear menu next to the URL in XDE and then under the Host menu, choose either LAN or localhost or Tunnel.

If you choose localhost, you won’t likely be able to open the project in anything except the simulator.

If you choose LAN, you can open it over your local wireless network as long as your phone is on the same wifi as your computer and the port is open on your computer.

If you choose Tunnel, XDE will use ngrok to tunnel into your computer from the cloud. This means any phone can open your project even if its not on the same wifi network but it sometimes might be slow if the connection to the cloud or to your phone isn’t very fast.