Added ability to specify ip address as environment variable