use either environment variable for IP/port definition