Allow localhost http connections and fix port

Fix port for testing elasticsearch.