How to bind phoenix app to specific ip address?

You can use the following snippet in your conf:

config :app_name, AppName.Endpoint,
  http: [ip: {0,0,0,0}],
  ...

Be aware of the fact, that you need to specify the IP-address in tuple notion

9 Likes