Which side of a NEMA 17 motor ceeates the most heat?

Which side of a NEMA 17 motor ceeates the most heat? The sides or the back

The windings are on the sides. That will be where your heat gets generated.