Can't connect to es using IP address

i installed elastic search as deb package and run the service. When i try to connect via localhost it works. but it don't works with local or global ip.

Which version of Elasticsearch, 2.0? By default it only binds to localhost. See the release notes.

thx but how to fix this?

The release notes should contain links to the documentation, which explains how to change the default. This has also come up before in the past couple of weeks so a search of the archives could prove useful.

Thx. i set network.host: "0.0.0.0" and now it works