# WebSocket connection to 'wss://hostname:7687/' failed:

**URL:** <https://community.neo4j.com/t/websocket-connection-to-wss-hostname-7687-failed/39622>\
**Category:** Neo4j Graph Platform\
**Created:** [June 10, 2021, 4:03am UTC](https://community.neo4j.com/t/websocket-connection-to-wss-hostname-7687-failed/39622 "2021-06-10T04:03:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamilvanan.090191](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/tamilvanan.090191/32/3909_2.png) [@tamilvanan.090191](https://community.neo4j.com/u/tamilvanan.090191)\
**Post date:** [June 10, 2021, 4:03am UTC](https://community.neo4j.com/t/websocket-connection-to-wss-hostname-7687-failed/39622/1 "2021-06-10T04:03:48Z")

</div>

Hi ,  
i am running neo4j docker version 4.2 on aws ec2 and trying to display graph using **neovis** and getting wss error.

```auto

docker run --name neo4j -p7474:7474 -p7687:7687 -d -v $HOME/neo4j/data:/data -v $HOME/neo4j/logs:/logs -v $HOME/neo4j/import:/var/lib/neo4j/import -v $HOME/neo4j/plugins:/plugins --env NEO4J_AUTH=neo4j/neo4j --env NEO4J_dbms_security_auth __enabled=false --env NEO4J_dbms_default__ database=neo4j --env NEO4J_dbms_connector_bolt_address=0.0.0.0:7687 neo4j:4.2

```

![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/8/0/802df7a3bb6298d171eee6b35784e10c54de8b72.png)

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [June 24, 2021, 12:42am UTC](https://community.neo4j.com/t/websocket-connection-to-wss-hostname-7687-failed/39622/2 "2021-06-24T00:42:19Z")

</div>

You probably need to run your webpage from http as otherwise the certificate requirement from https fails?

Or you need to use neo4j+ssc if you want to use self-signed certificates.
