# Communication between neo4j browser and container not working

**URL:** <https://community.neo4j.com/t/communication-between-neo4j-browser-and-container-not-working/17212>\
**Category:** Docker\
**Created:** [April 16, 2020, 4:02pm UTC](https://community.neo4j.com/t/communication-between-neo4j-browser-and-container-not-working/17212 "2020-04-16T16:02:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin.newsom](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/kevin.newsom/32/4300_2.png) [@kevin.newsom](https://community.neo4j.com/u/kevin.newsom)\
**Post date:** [April 16, 2020, 4:02pm UTC](https://community.neo4j.com/t/communication-between-neo4j-browser-and-container-not-working/17212/1 "2020-04-16T16:02:23Z")

</div>

Following these instructions: [How-To: Run Neo4j in Docker - Developer Guides](https://neo4j.com/developer/docker-run-neo4j/) trying to connect after starting the browser on localhost:7474 results in:

neo4j-driver.chunkhash.bundle.js:1 WebSocket connection to 'ws://0.0.0.0:7687/' failed: Error in connection establishment: net::ERR\_ADDRESS\_INVALID.

The workaround/solution posted here: [Can't connect to DB using `latest` image: SessionExpired: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver · Issue #240 · neo4j/docker-neo4j · GitHub](https://github.com/neo4j/docker-neo4j/issues/240) did not work for me.

I am running this container on Windows 10 using docker desktop 2.2.0.5

---

<div class="post-metadata">

**Author:** ![david\_allen](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/david_allen/32/13090_2.png) [@david\_allen](https://community.neo4j.com/u/david_allen)\
**Post date:** [April 16, 2020, 4:20pm UTC](https://community.neo4j.com/t/communication-between-neo4j-browser-and-container-not-working/17212/2 "2020-04-16T16:20:59Z")

</div>

On that github issue -- specifically the part that fixes it is the modification of the advertised addresses. I think your connection is failing because 0.0.0.0 is not a routable address from your desktop computer. You should instead advertise "localhost" as the address.

For follow-ups, please paste your exact run syntax, because details of docker port exposure also matter here. The principle here is that whatever your advertised address is, needs to be something that resolves properly from where your'e running your browser -- not from within the docker container itself.

---

<div class="post-metadata">

**Author:** ![kevin.newsom](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/kevin.newsom/32/4300_2.png) [@kevin.newsom](https://community.neo4j.com/u/kevin.newsom)\
**Post date:** [April 17, 2020, 4:44pm UTC](https://community.neo4j.com/t/communication-between-neo4j-browser-and-container-not-working/17212/3 "2020-04-17T16:44:55Z")

</div>

Running this:  
docker run -it --rm ` --publish=7474:7474 --publish=7687:7687`  
-e NEO4J\_dbms\_connector\_https\_advertised\_\_address="localhost:7473" `	-e NEO4J_dbms_connector_http_advertised__address="localhost:7474"`  
-e NEO4J\_dbms\_connector\_bolt\_advertised\_\_address="localhost:7687" ` --env=NEO4J_AUTH=none`  
neo4j

works! I can connect. I would like to transfer this to docker-compose, but I am unblocked for now. Thanks, David.
