Skip to content

How to Change Binding IP

Dimitrios Zorbas edited this page Nov 13, 2016 · 2 revisions

The default binding address is 127.0.0.1. You can specify a different address with any of the following ways:

Via the config/config.ex file:

config :kitto, ip: {127, 0, 0, 1}

Via ENV:

Change config/config.ex to fetch the address from the environment.

config :kitto, ip: {:system, "KITT0_IP"}

Pass the env variable when starting the server

KITTO_IP=0.0.0.0 mix kitto.server

See also: https://github.com/kittoframework/kitto/wiki/How-To-Change-HTTP-Port