Errno EADDRNOTAVAIL

cannot connect to port 5601

Unless you provide more information you will find it difficult to receive any meaningful answers.

Please have a read of https://www.elastic.co/help and update your post.