The calculated distance (air line) between Montpellier and Cannes is approximately 157 miles respectively 253 kilometers.
By car or train, the actual journey to Cannes is certainly longer, as only the direct route (as the crow flies) between Montpellier and Cannes has been calculated here.
Air line (approximately)
253 kilometers
136 nautical miles