Provided is a cable connector with a switching structure, including: a plug with a plug rubber core having a plurality of pin terminals and a rib; and a plug holder having a grip portion with ridges, a switch ring disposed around the grip portion, and a fastening nut abutting against the switch ring, wherein the plug holder is disposed around the plug, and the plug holder is coupled to sockets of different types by means of the switch ring. Therefore, the cable connector is hermetically sealed, fixed in place, prevented from loosening, easy to connect and assemble, convenient to change, repair, and disassemble, easy to operate, and for use in engaging with two different types of cable sockets.