# My Django site is unable to connect to Neo4j local host but it works on a friend's machine 🌌

**URL:** <https://community.neo4j.com/t/my-django-site-is-unable-to-connect-to-neo4j-local-host-but-it-works-on-a-friends-machine/65484>\
**Category:** Desktop\
**Tags:** neo4j-desktop\
**Created:** [December 22, 2023, 10:17pm UTC](https://community.neo4j.com/t/my-django-site-is-unable-to-connect-to-neo4j-local-host-but-it-works-on-a-friends-machine/65484 "2023-12-22T22:17:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![energeticawareness88](https://avatars.discourse-cdn.com/v4/letter/e/c0e974/32.png) [@energeticawareness88](https://community.neo4j.com/u/energeticawareness88)\
**Post date:** [December 22, 2023, 10:17pm UTC](https://community.neo4j.com/t/my-django-site-is-unable-to-connect-to-neo4j-local-host-but-it-works-on-a-friends-machine/65484/1 "2023-12-22T22:17:05Z")

</div>

When I ran my Django site that uses a Neomodel, I got the following error screenshot and error message. The versions that I used are Python 3.11 and the latest defaults for the Neo4j desktop setting.

 ![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/5/6/56e493398ad60b7952a498662ef058c6b7e2bd6d.png)

neo4j.exceptions.ServiceUnavailable: Couldn't connect to localhost:7687 (resolved to ()):  
Failed to establish connection to ResolvedIPv6Address(('::1', 7687, 0, 0)) (reason [WinError 10061] No connection could be made because the target machine actively refused it)  
Failed to establish connection to ResolvedIPv4Address(('127.0.0.1', 7687)) (reason [WinError 10061] No connection could be made because the target machine actively refused it)

Each of our systems is 64bit but my friend has Windows 10, and I have Windows 11. I tried turning off my Windows Firewall, but to no avail. Anyone might know what the issue may be?

---

<div class="post-metadata">

**Author:** ![energeticawareness88](https://avatars.discourse-cdn.com/v4/letter/e/c0e974/32.png) [@energeticawareness88](https://community.neo4j.com/u/energeticawareness88)\
**Post date:** [December 29, 2023, 7:35am UTC](https://community.neo4j.com/t/my-django-site-is-unable-to-connect-to-neo4j-local-host-but-it-works-on-a-friends-machine/65484/2 "2023-12-29T07:35:19Z")

</div>

Any updates, Neo4j community??

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [December 29, 2023, 3:42pm UTC](https://community.neo4j.com/t/my-django-site-is-unable-to-connect-to-neo4j-local-host-but-it-works-on-a-friends-machine/65484/3 "2023-12-29T15:42:23Z")

</div>

The neo4j service must be up if your colleague can connect. Do you have some malware or antivirus software running that may impede the connection?

---

<div class="post-metadata">

**Author:** ![energeticawareness88](https://avatars.discourse-cdn.com/v4/letter/e/c0e974/32.png) [@energeticawareness88](https://community.neo4j.com/u/energeticawareness88)\
**Post date:** [December 30, 2023, 3:30am UTC](https://community.neo4j.com/t/my-django-site-is-unable-to-connect-to-neo4j-local-host-but-it-works-on-a-friends-machine/65484/4 "2023-12-30T03:30:38Z")

</div>

Both my friend and I are running Neo4j desktop with a fresh database, but with the exact same connection credentials set up when we created them on each machine. So there is no common database that we are sharing
