Improve connection to servers
Use all connection parameters of the connection config, particularly the transport and ip.
Also improve creation of sockets based on the connection args.
Use all connection parameters of the connection config, particularly the transport and ip.
Also improve creation of sockets based on the connection args.