If I run this command, my login page successfully working.
I added ": 9200", port number not responding anything.
I created an issue on elasticsearch-php github page but nobody wrote an ansver.
I have a mistake too. I did not write properly there.
Yes that's true, Elasticsearch accessible both of machine
Yes, Elasticsearch-PHP working remotly
Yes, I run the same code on both machines. Elasticsearch-PHP working on the remote machine but cannot working on locally.
The reason I run it on the remote machine is just because I was wondering if it works.