DEV Community

cgiogkarakis
cgiogkarakis

Posted on

Expose your Phoenix app to local network devices

A quick note:

By default, when starting a phoenix server, it binds to loopback, which means that, if you try to access it from another device on your network to test, it will not work.

The default behaviour is good enough if you are only testing locally. Otherwise, go to e.g. config/dev.exs and under

config :your_app_name, YourAppName.Endpoint,

change as per comment the http: property to {0, 0, 0,0}

Top comments (0)