The invention relates to a device for connecting pipe ends (80, 82) of double-walled pipes (72, 74) for the angle compensation and for the length compensation of the relative motions of the double-walled pipes (72, 74) relative to a double-walled connector (10). First and second ball heads (20, 26) are arranged concentric to each other on the double-walled connector (10). Respective ball cages (52, 54) extend over the ball heads in a sealing manner. The ball cages (52, 54) are formed at double-walled connection points (46) of the double-walled pipe ends (80, 82). In the case of the device according to the invention, the sealing function for double-walled angle compensation and the sealing function for double-walled length compensation are carried out in such a way that said sealing functions are decoupled from each other, and therefore the sealing functions are optimized.