I am new with neo4j when I wrote this code I got the following error:
>>> from py2neo import neo4j
>>> graph_DB = neo4j.GraphDatabaseService ("http://localhost:7474/db/data")
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
graph_DB = neo4j.GraphDatabaseService ("http://localhost:7474/db/data")
File "C:\Python27\lib\site-packages\py2neo\neo4j.py", line 557, in __init__
rs = self._send(rest.Request(self, "GET", self._uri))
File "C:\Python27\lib\site-packages\py2neo\rest.py", line 372, in _send
raise SocketError(err)
SocketError: error(10061, 'No connection could be made because the target machine actively refused it')
I use windows 7. I have done several search and find out that I must open port 7474 to use it in windows firewall with advance security but when I create a new rule in inbound rules this don't effect to that port. Also in ubuntu 10.10 I can't open the port using netcat:
nc -l 7474
Where am I wrong ? thank you