This is the error message from Mysql Server. Most likely mysql server is located on 192.168.2.243, and your IP is 192.168.2.240. Mysql Server says that your IP is not allowed to connect.
You should probably check your grants:
SHOW GRANTS FOR root@192.168.2.240;