How to Configure Reflex Web App for Local Network Access Across Devices?

How can I configure my Reflex web app to run locally in a way that allows me to access it from other devices on the same home network (e.g., my iPad and phone) for testing purposes? What specific settings should I adjust in the Reflex configuration to enable this?

accessing on the ipv4 address with default frontend port 3000 works… :cowboy_hat_face:
eg. 192.168.x.xxx:3000/

We have some special logic in the frontend code that will rewrite the default api url (backend) of http://localhost:8000 to match whatever the hostname the frontend is being accessed through specifically to accommodate this use case of testing on other devices in the network.

Similarly if you’re accessing the app over https, and the api_url is still the default, then we drop the port and assume the backend is accessible from the same domain as the frontend.

These defaults simplify deployment and testing in the majority of use cases.