use environment host/port settings if available