hydraulic machine 1 with a connection 33 for a hydraulic fluid depending on the rotation direction of the hydraulic machine the connection 33 can be used as inlet or outlet connection the connection 33 is arranged in a flange 34 of the housing 5 and is connected to the annular chamber 27 via an axial bore 35 fig4 shows a section of the hydraulic machine 1 with a further connection 36 the connection 36 can also be used as inlet or outlet connection the connection 36 is arranged radially adjacent to the connection 33 in the flange 34 of the housing 5 the connection 36 is connected to the outer annular chamber 23 that is formed between the housing 5 and the drive shaft 8 from the connection 36 a hydraulic fluid flows through the outer annular chamber 23 the channel 24 and the inner annular chamber 25 to the rotary slide valve 6 and the valve plate 7 which ensure a corresponding inlet to the gear wheel section 4 in this connection the inner annular chamber 25 is connected to the annular groove 20 via the channel 26 the annular sealing 19 thus separates the area of the connection 33 from the area that is connected to the area of the connection 36 which is in this case made as an outlet connection thus both in the inlet area and in the outlet area the annular sealing 19 is acted upon with.