An electrical connector includes one or more connector terminals, which are connected to wiring extending from the connector and are coupled to interconnect with corresponding connector terminals in a mating connector. An active shielding circuit is mounted adjacent to the connector terminals and is configured to sense a first magnetic field in a vicinity of the electrical connector and to generate, based on the sensed magnetic field, a second magnetic field that reduces interference induced in the wiring and the connector terminals by the first magnetic field.