There is no way (or reason) to disable TCP. Elasticsearch uses both HTTP and TCP for communication; HTTP is used for client requests (from us users, Kibana etc) while TCP is for internal cluster state communication.
If you don't specify transport.tcp.port, in your elasticsearch.yml file, it will simply get a default value in the range 9300-9400 (see the TCP Transport documentation), so you really don't need to set it.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.