How to get the server ip address?

Maybe you can use System.cmd (and ifconfig in linux)?
http://elixir-lang.org/docs/stable/elixir/System.html