Set up Elasticsearch cluster 2 nodes on same machine

Hi David,
You are right, there is no meaning of cluster node on same server. However for now on our dev server we need to configure it on same server with two nodes. so as mentioned in document you suggested, I want to set two nodes on same server. and trying ...
"Out of the box, without any network configuration, Elasticsearch will bind to the available loopback addresses and will scan ports 9300 to 9305 to try to connect to other nodes running on the same server. This provides an auto- clustering experience without having to do any configuration."

I also tried with
discovery.zen.ping.unicast.hosts: ["10.1.1.101:9300","10.1.1.101:9304"]. but with these settings,I can not start elasticsearch services.