• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection on client system

 
Tolu Ajayi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I connect with this url try {
connection = DriverManager
.getConnection("jdbc:mysql://169.254.2.23:3306/hospital","root", ""); where 169.254.2.23

everything works fine from the host 169.254.2.23 which is my system but when I run my application on the client system, database does not work.
 
Rob Spoor
Sheriff
Pie
Posts: 20514
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://packetlife.net/blog/2008/sep/24/169-254-0-0-addresses-explained/

In other words, your IP address indicates you have no proper network connection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic