An electrical connector includes an electrical plug having a threaded sleeve for screwing on a union nut of an electrical socket or for screwing into a stationary housing component of an electronic device. The threaded sleeve includes an external thread not having a threadless area. The union nut includes an internal thread configured for threaded engagement with the external thread of the plug. The internal thread has at least one threadless area.