Hi Yuvraj,
By default, for security reasons, both Elasticsearch and Kibana default configuration only listens for connections on localhost. But with both Elasticsearch and Kibana on the same host, this should work fine without changing anything. Are you saying this isn't working for you? If so, what OS are you on?
Kibana doesn't actually listen to Elasticsearch. It's the other way around.
Elasticsearch listens for connections (from Kibana or anybody else) on port 9200.
Kibana listens for connections (from users browsers) on port 5601.
Its a fairly common security practice to have a default configuration that only listens on localhost until ready for production.
Regards,
Lee