title: How can I share my database using IP Address?
body: <pre><code> import java.sql.Connection; 
   import java.sql.DriverManager; 
   import javax.swing.JOptionPane;  
    public class Database {      
        public static Connection con = null;      
        public static Connection connectDB() {         
         try {             
           Class.forName("com.mysql.jdbc.Driver");            
           Connection con = DriverManager.getConnection("jdbc:mysql://192.168.1.8:3306/registerdb",                     "root", "");  
       //JOptionPane.showMessageDialog(null, "Connection Successful");             
       return con;         
      } catch (Exception e) {             
       JOptionPane.showMessageDialog(null, e);        
       return null;   
    }    
    }  
   }
  </code></pre>
  
  <p>How I make my finish program share to others locally or using the internet and how to use the IP address for it? I'm using NetBeans for my java programming and XAMPP for my database.
  Please help me.. THanks</p>