A connector adapted to be connected to and disconnected from a mating object in a connecting/disconnecting direction, includes an alignment member, a rear housing coupled to the alignment member, and a front housing that is adapted to receive the mating object and is movable with respect to the alignment member and the rear housing. A contact is held by the front housing and the rear housing. The alignment member and the rear housing include a stopper mechanism which three-dimensionally defines a movable range of the front housing.