# Connect to remote Neo4j

**URL:** <https://community.neo4j.com/t/connect-to-remote-neo4j/26107>\
**Category:** Neo4j Graph Platform\
**Tags:** connection, network-connectivity\
**Created:** [September 28, 2020, 6:15pm UTC](https://community.neo4j.com/t/connect-to-remote-neo4j/26107 "2020-09-28T18:15:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maziar](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/maziar/32/16693_2.png) [@maziar](https://community.neo4j.com/u/maziar)\
**Post date:** [September 28, 2020, 6:15pm UTC](https://community.neo4j.com/t/connect-to-remote-neo4j/26107/1 "2020-09-28T18:15:45Z")

</div>

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 :

```auto
dbms.default_listen_address=0.0.0.0

```

it seems that it will works only on IPv6 :

```auto
$sudo netstat -tpuln | grep java

```

```auto
tcp6 0 0 :::7687 :::* LISTEN 49021/java          
tcp6 0 0 :::7474 :::* LISTEN 49021/java 

```

if I change it back to :

```auto
#dbms.default_listen_address=0.0.0.0

```

I mean comment that line and

change this line :

```auto
# 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:

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

```

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

---

<div class="post-metadata">

**Author:** ![stefan.armbruster](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/stefan.armbruster/32/74_2.png) [@stefan.armbruster](https://community.neo4j.com/u/stefan.armbruster)\
**Post date:** [September 28, 2020, 7:07pm UTC](https://community.neo4j.com/t/connect-to-remote-neo4j/26107/2 "2020-09-28T19:07:45Z")

</div>

It seems Neo4j only binds to ipv6. I guess adding

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

```

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