Imacs can not connect

Hello Andrei

To be sure: Do you refer the local servoy.properties file on the Client machine or on the server machine?

The property SocketFactory.rmiServerFactory does not exist in either the servoy.properties file on server or client

Andrei Costescu:
What are the values for “SocketFactory.useSSL”, “SocketFactory.useTwoWaySocket”, “servoy.rmiStartPort” and “usedRMIRegistryPort” in your servoy.properties file?
Do you have a “SocketFactory.rmiServerFactory” property specified?

Please paste the exact connection exceptions from the log? Or are they the same as gdurniak’s?
Try setting both “SocketFactory.useSSL”, “SocketFactory.useTwoWaySocket” to false (if they are not false already) + restart server + clear/reload client and see if this works.

SocketFactory.useTwoWaySocket is set to true (this corresponds to checkbos setting in the application servers Network Settings, does it?)

I have to set that to true, otherwise no remote access (via VPN) with the Multi Developer is not possible. I will test it during lunch time.

Regards, Robert

Hello Andrei

To be sure: Do you refer the local servoy.properties file on the Client machine or on the server machine?

The property SocketFactory.rmiServerFactory does not exist in either the servoy.properties file on server or client.

Andrei Costescu:
What are the values for “SocketFactory.useSSL”, “SocketFactory.useTwoWaySocket”, “servoy.rmiStartPort” and “usedRMIRegistryPort” in your servoy.properties file?
Do you have a “SocketFactory.rmiServerFactory” property specified?

Please paste the exact connection exceptions from the log? Or are they the same as gdurniak’s?
Try setting both “SocketFactory.useSSL”, “SocketFactory.useTwoWaySocket” to false (if they are not false already) + restart server + clear/reload client and see if this works.

SocketFactory.useTwoWaySocket is set to true (this corresponds to checkbox setting in the application servers Network Settings, does it?) Or do you mean something else?

I have to set that to true, otherwise no remote access (via VPN) with the Multi Developer is not possible. I will test it during lunch time.

Regards, Robert

Yes, it is the checkbox setting in the application server’s Network Settings. The other settings are in there as well.
Do not forget about the log error - if you have one.

Hello Andrei

After deleting the Java caches, and checking and setting all parameters (again), and restarting the server, client and router, the client can access the app on the server without SSL, that seems to work stable now (at least I tried it 3 times). Although I don’t know what led to success. The SocketFactory.useTwoWaySocket is set, servoy.rmiStartPort is 1099.

Then I also checked SocketFactory.useSSL on the server, but then the client can’t connect any more (with default servoy keys, no entries for SocketFactory.SSLKeystorePath and SocketFactory.SSLKeystorePassphrase).

The client window is blank, shows in the left corner Start repository and in the right corner SSL. The Open Solution menu is not active!?

When I try to connect with VPN enabled, I still get the error “could not register client”.

I also noticed that every time I restart the application server when I have previously set (checkbox set) the SocketFactory.useSSL, it get’s lost. Seems to be a bug. But on the other hand, SSL seems to become active without restarting the app server.

Regards, Robert

PS: Attached the server log file, which seems ok except the warning.

Andrei Costescu:
Yes, it is the checkbox setting in the application server’s Network Settings. The other settings are in there as well.
Do not forget about the log error - if you have one.

After you modify the SSL/two way settings you must click on the “Save settings” button so that they will be there after you restart the server.

I reproduced the problem you are having (or at least one of them). Server - running on windows - client running on Mac; when only SSL is enabled (no two way) it does the exact same thing - shows “Starting repository” in the left, “SSL” in the right and nothing…

Strange that this happens to me when only SSL is enabled, and to you whenever SSL is enabled… Anyway, please add the issue to the support system - cannot say right now what the problem is as there are no errors in the log and it should work in LAN…

Finally figured it out…

“useSSL” is always set back to false when you start the server - happens because you are using multidev.
Using multidev server with SSL is currently not supported because of the higher complexity of managing two SSL connections (server-developer and developer-test client).

So currently, a server that has the “servoy.multideveloper.dns” property set will not work with “useSSL = true”. And what happens is that when you enable useSSL while the server is running (and you do not save), clients will no longer connect because they are using non SSL (as specified in the servoy.properties information that is saved upon server startup on the server) while the server is now set to use SSL (although not saved to servoy.properties)…

Hope this makes sense.
You can use different servers for multidev (no SSL) and for production (with SSL).