An electrical connector for connecting to a complementary electrical connector, the electrical connector comprising: a main body containing one or more electrically conducting mediums; and an end piece rotatably connected to the main body at one end of the main body, the end piece having a connecting side for engaging the complementary electrical connector, the end piece being rotatable about an axis of rotation, the connecting side comprising: one or more electrical contacts (402a, 402b, 402c, 402d) for engaging complementary electrical contacts (502a, 502b, 502c, 502d) on the complementary electrical connector, each electrical contact (402a, 402b, 402c, 402d) of the electrical connector being electrically connected to one of the electrically conducting mediums of the main body;and a magnet (404a, 404b, 404c, 404d) disposed on the connecting side of the end piece for engaging a complementary magnet (504a, 504b, 504c, 504d) on the complementary electrical connector, the magnet (404a, 404b, 404c, 404d) on the connecting side having at least one pole (406a, 406b, 406c, 406d) which is located at a position on the connecting side which is offset from the axis of rotation, the magnet (404a, 404b, 404c, 404d) producing a magnetic field which permits an external magnetic field to cause the end piece to rotate about the axis of rotation to self-align the electrical connector with the complementary electrical connector. a main body containing one or more electrically conducting mediums; and an end piece rotatably connected to the main body at one end of the main body, the end piece having a connecting side for engaging the complementary electrical connector, the end piece being rotatable about an axis of rotation, the connecting side comprising: one or more electrical contacts (402a, 402b, 402c, 402d) for engaging complementary electrical contacts (502a, 502b, 502c, 502d) on the complementary electrical connector, each electrical contact (402a, 402b, 402c, 402d) of the electrical connector being electrically connected to one of the electrically conducting mediums of the main body;and a magnet (404a, 404b, 404c, 404d) disposed on the connecting side of the end piece for engaging a complementary magnet (504a, 504b, 504c, 504d) on the complementary electrical connector, the magnet (404a, 404b, 404c, 404d) on the connecting side having at least one pole (406a, 406b, 406c, 406d) which is located at a position on the connecting side which is offset from the axis of rotation, the magnet (404a, 404b, 404c, 404d) producing a magnetic field which permits an external magnetic field to cause the end piece to rotate about the axis of rotation to self-align the electrical connector with the complementary electrical connector. one or more electrical contacts (402a, 402b, 402c, 402d) for engaging complementary electrical contacts (502a, 502b, 502c, 502d) on the complementary electrical connector, each electrical contact (402a, 402b, 402c, 402d) of the electrical connector being electrically connected to one of the electrically conducting mediums of the main body;and a magnet (404a, 404b, 404c, 404d) disposed on the connecting side of the end piece for engaging a complementary magnet (504a, 504b, 504c, 504d) on the complementary electrical connector, the magnet (404a, 404b, 404c, 404d) on the connecting side having at least one pole (406a, 406b, 406c, 406d) which is located at a position on the connecting side which is offset from the axis of rotation, the magnet (404a, 404b, 404c, 404d) producing a magnetic field which permits an external magnetic field to cause the end piece to rotate about the axis of rotation to self-align the electrical connector with the complementary electrical connector.