# Cannot connect to localhost

**URL:** https://community.stardog.com/t/cannot-connect-to-localhost/1234
**Category:** Stardog Studio
**Created:** [August 21, 2018, 2:34pm UTC](https://community.stardog.com/t/cannot-connect-to-localhost/1234 "2018-08-21T14:34:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nicky508](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/nicky508/32/102_2.png) [@nicky508](https://community.stardog.com/u/nicky508)
#### Post date: [August 21, 2018, 2:34pm UTC](https://community.stardog.com/t/cannot-connect-to-localhost/1234/1 "2018-08-21T14:34:04Z")

</div>

Hi,

I was trying Stardog Studio and wanted to connect it with a local stardog graph. But it doesnt want to connect. It does connect with a remote Stardog graph. I used the standard username and password and thefore the standard suggest settings in Stardog studio for connecting. When I try to connect studio with a local Stardog, it drops the following error:

> Could not connect: request to [http://localhost:5820/admin/users/valid](http://localhost:5820/admin/users/valid) failed, reason: connect EACCES 127.0.0.1:5820

---

<div class="post-metadata">

### Author: ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)
#### Post date: [August 21, 2018, 2:44pm UTC](https://community.stardog.com/t/cannot-connect-to-localhost/1234/2 "2018-08-21T14:44:06Z")

</div>

Can you verify that your Stardog server is running and bound to port 5820?

---

<div class="post-metadata">

### Author: ![jason](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jason/32/226_2.png) [@jason](https://community.stardog.com/u/jason)
#### Post date: [August 21, 2018, 2:47pm UTC](https://community.stardog.com/t/cannot-connect-to-localhost/1234/3 "2018-08-21T14:47:03Z")

</div>

In addition to what Stephen said, there may be a firewall preventing connections to localhost. Do you know whether there is a firewall running on your local machine? On Windows, there is likely one enabled by default; for other operating systems, it will vary. If there is a firewall running, can you temporarily disable it to test whether that is in fact preventing the Studio connection?

Thanks!

---

<div class="post-metadata">

### Author: ![nicky508](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/nicky508/32/102_2.png) [@nicky508](https://community.stardog.com/u/nicky508)
#### Post date: [August 21, 2018, 2:53pm UTC](https://community.stardog.com/t/cannot-connect-to-localhost/1234/4 "2018-08-21T14:53:15Z")

</div>

Thanks, it was the firewall!
