MySQL can't connect to Private Network
I can't seem to connect my WebApp to MySQL. I've setup 2 droplets with both Private Networking checked. Both servers can ping each other using the eth1 IP address.
Also when I execute nc -zv privatenetwork.db.server.ip 3306 the connection succeeds.
I also have UFW in place. The tricky thing about it is when I allow port 3306 to be accessed anywhere on UFW the WebApp can connect. Also when I set the port 3306 to be accessed by the public ip of the WebApp, again it can connect. But when I set the port 3306 to be access by the private ip of the WebApp it fails to connect.
Please enlighten me on why my WebApp can't connect to the Private Network.