There is no such setting. 5222 is the current main port for both nonSSL and SSL connections. 5223 will be deprecated at some point. You can check security settings on your server (Admin Console > Server Settings > Security Settings). What setting is on for the client connections? You can disable Old SSL there and set TLS to required. Clients will use server's self-signed certificates, unless you have installed other ones.
Also in Spark Advanced settings check if "Automatically discover host and port" is checked. It should be by default, and it should have 5222 port in there.