You have to set globally:
SocketFactory.rmiServerFactory=com.servoy.j2db.server.rmi.tunnel.ServerTunnelRMISocketFactoryFactory
SocketFactory.tunnelConnectionMode=http&socket
then in your vpnprofile profile, you only put:
SocketFactory.tunnelConnectionMode=socket
and you can also create a httpprofile profile with:
SocketFactory.tunnelConnectionMode=http
You can’t set SocketFactory.rmiServerFactory in the profile
This is a serverside setting (and partly client side)
Only the client side can be pushed (what the client should be using sockets or http)
But in socket mode it is not really a tunnel (you don’t tunnel it over a specific protocol like http)
socket mode uses direct plain sockets and also connect to the port 1099 (if the rmi port is configured for that)
It is pretty much the same thing as 2 way, it only works differently and you have 1 other big plus: The java network connection setting (direct/proxy) don’t matter anymore…
I think in 6.0 “2 way socket” will be deprecated and by default we will have the socket factory configured in http&socket.
I will also then make all those settings way easier, and just have 1 combo there: “Http&Socket”,“Http”,“2 Way”