Hi,
I have downloaded Neo4j Community Edition. I opened command prompt and connected to Neo4j console by following command.
<NEO4J_HOME>\bin\neo4j console
I got this in command prompt
2019-11-21 06:37:11.980+0000 INFO ======== Neo4j 3.5.12 ========
2019-11-21 06:37:11.984+0000 INFO Starting...
2019-11-21 06:37:20.951+0000 INFO Bolt enabled on 127.0.0.1:7687.
2019-11-21 06:37:22.462+0000 INFO Started.
2019-11-21 06:37:23.730+0000 INFO Remote interface available at http://localhost:7474/
I opened google chrome browser and opened http://localhost:7474/ I changed the pwd and connected to bolt://127.0.0.1:7687
I created some nodes and relationships in the database.
I wrote below python program(KB.py)

When I ran KB.py in my system, it gave me results.
Now i want to connect to this database from other system.
I followed your comments in this forum and changed the neo4j.conf file by updating define parameter dbms.connectors.default_advertised_address=0.0.0.0
. After making this change I restarted Neo4j in command prompt again by command <NEO4J_HOME>\bin\neo4j console
This time it gave me this in command prompt
D:\neo4j\bin>neo4j console
2019-11-21 06:52:02.666+0000 INFO ======== Neo4j 3.5.12 ========
2019-11-21 06:52:02.682+0000 INFO Starting...
2019-11-21 06:52:11.286+0000 INFO Bolt enabled on 127.0.0.1:7687.
2019-11-21 06:52:12.723+0000 INFO Started.
2019-11-21 06:52:13.551+0000 INFO Remote interface available at http://0.0.0.0:7474/
Now i am running KB.py from another machine without changing any code in KB.py. But it is not giving any results from another machine. It gives below error
Traceback (most recent call last):
File "C:\Python\Python37\lib\site-packages\neobolt\direct.py", line 835, in connect
s.connect(resolved_address)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:/Python_games/kb1/KB.py", line 22, in
kb = KB()
File "E:/Python_games/kb1/KB.py", line 13, in init
self.driver = GraphDatabase.driver(uri=uri, auth=(author,password))
File "C:\Python\Python37\lib\site-packages\neo4j_ init .py", line 120, in driver
return Driver(uri, **config)
File "C:\Python\Python37\lib\site-packages\neo4j_ init .py", line 161, in new
return subclass(uri, **config)
File "C:\Python\Python37\lib\site-packages\neo4j init .py", line 235, in new
pool.release(pool.acquire())
File "C:\Python\Python37\lib\site-packages\neobolt\direct.py", line 719, in acquire
return self.acquire_direct(self.address)
File "C:\Python\Python37\lib\site-packages\neobolt\direct.py", line 612, in acquire_direct
connection = self.connector(address, error_handler=self.connection_error_handler)
File "C:\Python\Python37\lib\site-packages\neo4j init _.py", line 232, in connector
return connect(address, **dict(config, **kwargs))
File "C:\Python\Python37\lib\site-packages\neobolt\direct.py", line 976, in connect
raise last_error
File "C:\Python\Python37\lib\site-packages\neobolt\direct.py", line 966, in connect
s = _connect(resolved_address, **config)
File "C:\Python\Python37\lib\site-packages\neobolt\direct.py", line 847, in _connect
raise ServiceUnavailable("Failed to establish connection to {!r} (reason {})".format(resolved_address, error))
neobolt.exceptions.ServiceUnavailable: Failed to establish connection to ('127.0.0.1', 7687) (reason [WinError 10061] No connection could be made because the target machine actively refused it)
Process finished with exit code 1
When I run from KB.py my machine it is giving results. Could you please help me how can I connect to the neo4j database in my machine from another machine.
Thank you