Selecting connection enviroment.