The invention refers to a connector and a teatcup comprising a connector (2) and a cartridge. The cartridge comprises a sleeve, having a first end and a second end, and a teatcup liner mounted in the sleeve and having a inner space for receiving a teat. The connector is configured to connect a milk conduit to the cartridge. The connector comprises a casing (24), which defines a longitudinal centre axis (x) and encloses a connection space (27). The casing has en inner surface facing the connection space. The casing comprises an inlet opening (28) for the cartridge to the connection space, and an outlet opening (29) for the milk conduit. Locking means is provided on the inner surface of the casing and configured to permit locking of the cartridge in the connector.