added automatic http port detection give port range (default 9200-9300)