I want to connect a MySQL database in other application through static ip or port no.
What is run own application on other pc nothing no result empty. When I put this address own other pc this link correctly work http://192.168.137.1:81/phpmyadmin access phpmyadmin database.
I used in connection string this ip or port 92.168.137.1:81
My code
import java.sql.Connection;
import java.sql.DriverManager;
/**
 *
 * @author VAISAL
 */
public class ConnectionDB {
 Connection koneksi=null;
public static String host="192.168.137.1:81";
public static Connection koneksiDb(){
    try
    {
        Class.forName("com.mysql.jdbc.Driver");
        Connection filekoneksi = DriverManager.getConnection("jdbc:mysql://"+host+"/sale","ultronhouse","qwertyuiop");
        System.out.println("Connection Success");
        return filekoneksi;
    }
    catch (Exception e){
        System.out.println(e.getMessage()+"Connection error");
        return null;
    }
}   
}
 
    