B4J Question HTTP Failed To Connect.

LWGShane

Well-Known Member
Licensed User
Longtime User
In my recently released AstralCore, I noted that I am having a problem with connecting to the server app that's running on a VPS. (I can use RemoteCore to connect to the server app just fine when it's running on my machine.)

Here is the code you can use to test with the library. Don't worry, the MySQL user is a dummy user that I created so I could post the full code.
B4X:
Dim TestCore As RemoteCore
TestCore.Initialize(CreateMap("AppHost":"http://45.32.229.216:51020/Action", "CoreHost":"localhost", "CoreName":"RemoteCore", "Username":"B4X", "Password":"b4xforum!@", "EncryptionPassword":"TestPassword"))
TestCore.Put("Test 00001", "First Cloud Put", "Awesome!")

The error I receive is this:
java.net.ConnectException: Failed to connect to /45.32.229.216:51020
I have no idea why it's removing the "http:/".

Also my firewall is configured to allow for incoming connections to the port. (See screenshot.)

Any ideas?
 

Attachments

  • Firewall.PNG
    26.7 KB · Views: 156
Cookies are required to use this site. You must accept them to continue using the site. Learn more…