# Unable to connect to Stardog-server

**URL:** https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068
**Category:** Support
**Created:** [June 2, 2021, 11:07am UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068 "2021-06-02T11:07:20Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Ayudh\_Saxena](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/ayudh_saxena/32/992_2.png) [@Ayudh\_Saxena](https://community.stardog.com/u/Ayudh_Saxena)
#### Post date: [June 2, 2021, 11:07am UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/1 "2021-06-02T11:07:20Z")

</div>

I have set up a Stardog-server in a Docker Windows 10 and was successfully able to start it. But when I try to connect to this server from the browser-based studio it gives the following error  
"The Stardog Server is not responding. Please check your server status or endpoint."  
I switched off my firewall completely and tried to connect but no luck.  
It'll be a big help if someone can help me figure this out.  
Thank you.

---

<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: [June 2, 2021, 1:38pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/2 "2021-06-02T13:38:50Z")

</div>

Can you tell us the URLs you are working with, including the protocol (HTTP or HTTPS), for Studio and your Stardog server? For example, are you going to `https://stardog.studio` and trying to connect to a Stardog server using `http://localhost:5820`? Depending on your browser, connections from an HTTPS site to an HTTP endpoint will not work, so that's a possible explanation here. To know for sure, we'll need more details.

Thanks,  
Jason

---

<div class="post-metadata">

### Author: ![Ayudh\_Saxena](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/ayudh_saxena/32/992_2.png) [@Ayudh\_Saxena](https://community.stardog.com/u/Ayudh_Saxena)
#### Post date: [June 2, 2021, 1:52pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/3 "2021-06-02T13:52:39Z")

</div>

Hey Jason, thanks for replying!  
Yeah so my server URL is - [http://localhost:5820](http://localhost:5820)  
and my studio URL is - [Stardog Studio](http://stardog.studio/#/)  
Both are HTTP only

---

<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: [June 2, 2021, 1:57pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/4 "2021-06-02T13:57:55Z")

</div>

Okay, thanks. That isn't the issue, then. What is the full command that you are using to start Stardog in Docker? What happens when you go directly to `http://localhost:5820` in your browser?

Thanks,  
Jason

---

<div class="post-metadata">

### Author: ![Ayudh\_Saxena](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/ayudh_saxena/32/992_2.png) [@Ayudh\_Saxena](https://community.stardog.com/u/Ayudh_Saxena)
#### Post date: [June 2, 2021, 2:39pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/5 "2021-06-02T14:39:33Z")

</div>

I am actually using the Docker UI to start Startdog, I provide both the locations, in the optional settings (where my stardog license lies and /var/opt/stardog). Getting a "This site cant be reached error. Localhost refused to connect". Attached a screenshot as well

 ![stardog](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/1X/7817ce7576c21fb6a479869e3a369ae76124cdd7.png)

---

<div class="post-metadata">

### Author: ![serge](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/serge/32/376_2.png) [@serge](https://community.stardog.com/u/serge)
#### Post date: [June 2, 2021, 2:43pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/6 "2021-06-02T14:43:03Z")

</div>

can you share the output of `docker container ps`

---

<div class="post-metadata">

### Author: ![Ayudh\_Saxena](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/ayudh_saxena/32/992_2.png) [@Ayudh\_Saxena](https://community.stardog.com/u/Ayudh_Saxena)
#### Post date: [June 2, 2021, 2:49pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/7 "2021-06-02T14:49:36Z")

</div>

Yep ive attached the outputs as screenshots and some extra info as well

 ![docker_container](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/1X/d5b3c764b0feec82b2af30ef64cc587c64e3e472.png)  
 ![docker_details](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/1X/78e0ae107f61438f9c21e98b19ea1ecff34045c1.png)

---

<div class="post-metadata">

### Author: ![serge](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/serge/32/376_2.png) [@serge](https://community.stardog.com/u/serge)
#### Post date: [June 2, 2021, 6:20pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/8 "2021-06-02T18:20:24Z")

</div>

The issue is with how you are starting, port forwarding is not being setup correction. The ps output should look something like

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/1X/94355dc710313223a5ea6b408f6e70ad86cc240a.png)

Compare your screenshot with the one above, you will notice the PORTS field is different.

The command to start stardog docker

```auto
docker run -it -v ~/stardog-home/:/var/opt/stardog -p 5820:5820 stardog/stardog

```

If that work you will need to figure our how to pass the arg -p 5820:5820 when starting it from the UI

---

<div class="post-metadata">

### Author: ![Ayudh\_Saxena](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/ayudh_saxena/32/992_2.png) [@Ayudh\_Saxena](https://community.stardog.com/u/Ayudh_Saxena)
#### Post date: [June 2, 2021, 7:36pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/9 "2021-06-02T19:36:05Z")

</div>

> [@serge](#):
>
> `docker run -it -v ~/stardog-home/:/var/opt/stardog -p 5820:5820 stardog/stardog`

Hey, running from the command line worked! Thanks a lot 😃

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [June 16, 2021, 7:36pm UTC](https://community.stardog.com/t/unable-to-connect-to-stardog-server/3068/10 "2021-06-16T19:36:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
