I've connected my really basic Java application to the Wamp server on my computer using the following code
try {
Class.forName("com.mysql.jdbc.Driver");
Connection connection = DriverManager.getConnection(
"jdbc:mysql://localhost:3306/project", "root", "password");
Obviously, this program runs on my computer, but no one else's, and I need to submit this as a project.
Is there anyway I can modify this part so that my partner and teacher can run the code from their computers, without having to download any special software, and access the database on my localhost? Possibly like replacing //localhost:3306 with //my IP address:8080?
All suggestions I've gotten involve networking, which I don't know anything about so I don't want to try and then mess up my computer unless I'm really sure
Things I've already looked in to, but aren't sure about:
C:/wamp/alias/phpmyadmin.confand entering the lineALLOW (other person's IP)- team viewer (requires the other computer to use software other than my program)
- opening my router port to take incoming requests
Anything'll help guys, even just confirming it can't be done without some networking. If it's something an inexperienced person can do, I'll take it.
//my IP address:3306? That assumes there aren't any firewall or routing issues.//my IPbut it created some kind of loop back error when I ran it on my system so I couldn't be sure