An optical-electric connector (100) includes an insulating housing (10), a number of terminals, an optical element (40) and a shielding shell (30). The insulating housing (10) defines a mating face (11) having a mating hole (111) thereon, a receiving room (13) communicating with the mating hole and a number of terminal slots (15) receiving the terminals. The optical element is assembled in the insulating housing. The shielding shell substantially encloses the insulating housing and comprises a grounding tab (33) extending from an upper face thereof, the terminal comprises a grounding terminal and a detecting terminal.