cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Connect to remote Neo4j

maziar
Node Link

I just installed a latest version of Neo4j community version through apt and neo4j repository on ubuntu server :

deb https://debian.neo4j.com stable 4.1

My neo4j version is neo4j 4.1.2

There is a problem, when I'm changing configuration to the blow for remote connection :

dbms.default_listen_address=0.0.0.0

it seems that it will works only on IPv6 :

$sudo netstat -tpuln | grep java
tcp6       0      0 :::7687                 :::*                    LISTEN      49021/java          
tcp6       0      0 :::7474                 :::*                    LISTEN      49021/java 

if I change it back to :

#dbms.default_listen_address=0.0.0.0

I mean comment that line and

change this line :

# Bolt connector
dbms.connector.bolt.enabled=true
#dbms.connector.bolt.tls_level=DISABLED
dbms.connector.bolt.listen_address=0.0.0.0:7687
dbms.connector.bolt.advertised_address=0.0.0.0:7687

# HTTP Connector. There can be zero or one HTTP connectors.
dbms.connector.http.enabled=true
dbms.connector.http.listen_address=0.0.0.0:7474
dbms.connector.http.advertised_address=0.0.0.0:74747

the netstat output will be the same:

tcp6       0      0 :::7687                 :::*                    LISTEN      49518/java          
tcp6       0      0 :::7474                 :::*                    LISTEN      49518/java 

whats wrong with neo4j? whats the problem?!?!!>?!

1 REPLY 1

It seems Neo4j only binds to ipv6. I guess adding

dbms.jvm.additional=-Djava.net.preferIPv4Stack=true

should do the trick. Or you can switch off ipv6 on OS level.