Ports closed remotely while they are open locally [closed]
Solution 1:
One thing to check if which address it listens on, use netstat -anp | grep 3306
if it is 0.0.0.0:3306 then anyone can connect, however if it is 127.0.0.1:3306 then you can only connect to it via localhost.
To change what MariaDb listen on, change my.cnf and comment out bind-address line, which will make it listen on all interfaces, see documentation
Also check iptables iptables -vnL
Some things that you should provide in original post is which commands you used to obtain the output. And also more details about the network, where is the server that you try to connect to in relation to where the client is located, is it on the same local network, or is there something else in-between?