An electrical connector includes an insulating housing, a plurality of conductive terminals installed in the insulating housing and a metallic shell shielding around the insulating housing. The insulating housing has a mating portion extending forwardly thereof. The metallic shell surrounds to form a mating cavity into which the mating portion extending and a joint communicating with the mating cavity. The conductive terminals are exposed to one face of the mating portion. The joint is filled with soldering material to form a soldering segment. The electrical connector has good waterproof function with the soldering segment in the joint.