Connection to DB fails due to multiple reasons even though you have configured your IPs correctly.
My suggestions would be:
1. Turn off your firewall in Windows/Centos.
2. Check for your connectivity on Centos side. This is the most common issue I face. Every time you restart your PC, most of...