# Cannot connect to local DBMS with golang driver

**URL:** <https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042>\
**Category:** Go\
**Created:** [June 26, 2023, 4:27am UTC](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042 "2023-06-26T04:27:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaungmyatsakm](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/kaungmyatsakm/32/28985_2.png) [@kaungmyatsakm](https://community.neo4j.com/u/kaungmyatsakm)\
**Post date:** [June 26, 2023, 4:27am UTC](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042/1 "2023-06-26T04:27:21Z")

</div>

I install Neo4j Desktop and it already have example project and db, when i try to connect from golang driver, it said `ConnectivityError: Unable to retrieve routing table from localhost:7474: serv er responded with unsupported version 80.84` I have the latest version of golang driver v5 and latest version db 5.9.0, also face issue with 5.3.0 too,

---

<div class="post-metadata">

**Author:** ![kaungmyatsakm](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/kaungmyatsakm/32/28985_2.png) [@kaungmyatsakm](https://community.neo4j.com/u/kaungmyatsakm)\
**Post date:** [June 26, 2023, 6:43am UTC](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042/2 "2023-06-26T06:43:48Z")

</div>

happening for neo4j://localhost:port one but bolt:// one is working

---

<div class="post-metadata">

**Author:** ![kaungmyatsakm](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/kaungmyatsakm/32/28985_2.png) [@kaungmyatsakm](https://community.neo4j.com/u/kaungmyatsakm)\
**Post date:** [June 26, 2023, 7:10am UTC](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042/3 "2023-06-26T07:10:45Z")

</div>

happening with sandboxes too, can connect with desktop but not with golang

---

<div class="post-metadata">

**Author:** ![florent\_biville](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/florent_biville/32/14205_2.png) [@florent\_biville](https://community.neo4j.com/u/florent_biville)\
**Post date:** [June 26, 2023, 7:45am UTC](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042/4 "2023-06-26T07:45:48Z")

</div>

Hello, the 7474 port is for HTTP, not Bolt.  
The usual default port for Bolt (which can be omitted) is 7687.  
You can use `neo4j://localhost` to connect.  
Does that help?

---

<div class="post-metadata">

**Author:** ![kaungmyatsakm](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/kaungmyatsakm/32/28985_2.png) [@kaungmyatsakm](https://community.neo4j.com/u/kaungmyatsakm)\
**Post date:** [June 26, 2023, 12:26pm UTC](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042/5 "2023-06-26T12:26:32Z")

</div>

it worked, i thought i have to specifiy the port since it doesn't look like default port, thank you

---

<div class="post-metadata">

**Author:** ![florent\_biville](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/florent_biville/32/14205_2.png) [@florent\_biville](https://community.neo4j.com/u/florent_biville)\
**Post date:** [June 28, 2023, 8:59am UTC](https://community.neo4j.com/t/cannot-connect-to-local-dbms-with-golang-driver/63042/6 "2023-06-28T08:59:47Z")

</div>

If you specify the port, you need to specify the **Bolt** port (default: 7687), not the HTTP port (default: 7474). Drivers uses the Bolt protocol to "talk" to the server, not HTTP.
