Use dynamically assigned port number for elastic search connection