Now call parsePort and ParseDir in Connection.