i have this database on another pc and i want to access it by using a connection string like this.
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://192.168.0.1/dbtina","root","1234");
the "dbtina" is our database. the "1234" is our password. and we have configured our ip to be like that because we are using a wired connection (peer to peer).
Exception: Communications link failure
Last packet sent to the server was 0 ms ago.*
how do i fix this?