Apache solr is not accessible by my server but accessible by my localhost
problem was caused by selinux on my server.

by disabling selinux and rebooting centOs I could connect to my solr apache.

I found the answer here