get ip address from environment instead of using config file