Android Question I cant connect my JRDC2 middleware server to Heroku's ClearDB

my JRDC2 server in localhost running sucessfully.
and then,
I tried it to connect my B4a app in Heroku's ClearDB database using JRDC2 middleware server.

Like this,
DriverClass=com.mysql.jdbc.Driver
JdbcUrl=jdbc:mysql://us-cdbr-east-06.cleardb.net/heroku_0c692a6fc1e1eb7?reconnect=true
User=be2d33cba97c2f
Password=45e01ef4
#Java server port
ServerPort=17170

and my rdclink is like this,

Public const rdclink As String = "http://us-cdbr-east-06.cleardb.net:17170/rdc"


so i run b4j server and run my b4a app.

then i tried to connect it and run a command, but i get this error

ResponseError. Reason: java.net.SocketTimeoutException: connect timed out, Response:
ERROR: java.net.SocketTimeoutException: connect timed out
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
In my Develepment Pc
Watch jRDC2 video tutorial and understand how it works. It will save you a lot of time. The client needs to connect to jRDC2. rdclink is wrong. You should also open the relevant port in Windows firewall.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…