Not an answer but adding some details. After installing HeidiSQL I ran into this issue as well.
I suspected that the software ignored the "Nom ou IP de l'hote". Instead of using 172.31.6.52 it looks like 172.16.201.232 is being used.
You may not have seen the .232 IP address before but probably it's your computers ip-address. You can check by opening a command prompt (cmd.exe) and type "ipconfig". It should be listed there under 'IPv4 Address"
As Arjan posted, probably you need to change the configuration on the server side to allow access if you try to connect from your computer.
It would be nice if the Error message said something like:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ Erreur ┃
┃ ┃
├━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┤
┃ ┃
┃ Authentication request successfully sent to: 172.31.6.52 ┃
┃ A response is received... ┃
┃ ┃
┃ ERROR: Access denied for user 'root'@'172.16.201.232' (using ┃
| password: YES) ┃
┃ ┃
┃ ┃
├━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┤
┃ ┃
┃ [◄ Ok ►] ┃
┃ ┃
└━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┘