Kibana Error : Unable to retrieve version information from Elasticsearch nodes. Hostname/IP does not match certificate's altnames: IP: x.x.x.x is not in the cert's list: y.y.y.y

I am running an elasticsearch-8.3.3 and kibana-8.3.3 on my local machine. I had set up basic security for elastic stack and plus secured htpps traffic and both elasticsearch and kibana were working fine. In the set up I had listed the some IP Addresses to generate the cert file.

Now, my laptop has restarted and the IP Addresses have changed and I am getting the error above.

My question is that do i have to re-configure the secured https each time my IP Addresses changes or are there other ways to handle this.

Regards

kamal

Can you use localhost instead?