# Joplin Server refuses connections

**URL:** <https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395>\
**Category:** Support\
**Created:** [16 March 2025 00:04 UTC](https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395 "2025-03-16T00:04:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBDigital](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@DBDigital](https://discourse.joplinapp.org/u/DBDigital)\
**Post date:** [16 March 2025 00:04 UTC](https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395/1 "2025-03-16T00:04:36Z")

</div>

### Operating system

Linux

### Joplin version

3.3.4

### Sync target

Joplin Server

### Editor

Markdown Editor

### What issue do you have?

I am trying to get Joplin server going on Linux Mint. And while I have got docker installed, the image pulled, and the container going I can't access the admin controls.

the docker compose file:  
version: '3'  
services:  
db:  
image: postgres:16  
volumes:  
- ./data/postgres:/var/lib/postgresql/data  
ports:  
- "5432:5432"  
restart: unless-stopped  
environment:  
- POSTGRES\_PASSWORD=testing123  
- POSTGRES\_USER=joplin  
- POSTGRES\_DB=joplindb  
app:  
image: joplin/server:latest  
depends\_on:  
- db  
ports:  
- "22300:22300"  
restart: unless-stopped  
environment:  
- APP\_PORT=22300  
- APP\_BASE\_URL=[http://192.168.1.105:22300](http://192.168.1.105:22300)  
- DB\_CLIENT=pg  
- POSTGRES\_PASSWORD=testing123  
- POSTGRES\_DATABASE=joplindb  
- POSTGRES\_USER=joplin  
- POSTGRES\_PORT=5432  
- POSTGRES\_HOST=db

docker ps -a does show it as installed and running. But when I put in into a browser [http://192.168.1.105:22300](http://192.168.1.105:22300) it never connects. This is only intended on my own network not exposed to the internet. This is running in a virtual machine by the way, but I have had other apps connect fine to it without a issue (gftp for example).

I am sure I am missing something but not sure what.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [16 March 2025 11:55 UTC](https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395/2 "2025-03-16T11:55:34Z")

</div>

Did you try a valid path like [http://192.168.1.105:22300/api/ping](http://192.168.1.105:22300/api/ping) ?

---

<div class="post-metadata">

**Author:** ![DBDigital](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@DBDigital](https://discourse.joplinapp.org/u/DBDigital)\
**Post date:** [16 March 2025 19:44 UTC](https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395/3 "2025-03-16T19:44:19Z")

</div>

Yes, I just tried [http://192.168.1.105:22300/api/ping](http://192.168.1.105:22300/api/ping) and still nothing. It just refuses/times out. This is even from inside the VM using Firefox as the browser.

---

<div class="post-metadata">

**Author:** ![DBDigital](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@DBDigital](https://discourse.joplinapp.org/u/DBDigital)\
**Post date:** [21 March 2025 02:02 UTC](https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395/4 "2025-03-21T02:02:54Z")

</div>

Any ideas? Has anyone had this before?

---

<div class="post-metadata">

**Author:** ![MoriarT3a](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/moriart3a/32/16415_2.png) [@MoriarT3a](https://discourse.joplinapp.org/u/MoriarT3a)\
**Post date:** [21 March 2025 09:19 UTC](https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395/5 "2025-03-21T09:19:06Z")

</div>

What infomration do you become, if you start your container with `docker compose up` ?  
Are there any usefull hints for a failure?

With `docker -a` you can see wich containers are running but if in this container is a failure that is not stopping the container, it looks like everything is running.

Mybe you could jump into the container bash without restarting via `docker compose up` if you use `docker exec -it CONTAINER_NAME_ODER_ID bash`  
The container id is shown under `docker ps -a`

Maybe we find a hint there. It could be a problem with the user permissions of the database folder under `./data/postgres`. Is the folder there and are files in it?

---

<div class="post-metadata">

**Author:** ![DBDigital](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@DBDigital](https://discourse.joplinapp.org/u/DBDigital)\
**Post date:** [23 March 2025 01:46 UTC](https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395/6 "2025-03-23T01:46:54Z")

</div>

Docker -a shows they are running

when I do docker compose up -d I get:  
Network joplin default created  
container joplin-1 started  
container joplin-app-1 started

SO they do appear to be running.

docker ps -a also shows them running.

I did some searching last night and came up with the idea to use [http://localhost:22300](http://localhost:22300) THIS actually allowed me to get to the Joplin setup page when accessed inside the VM via the installed firefox web browser. Proof that it was working and set up. But of course this address won't extend outside the VM itself.

I have been wondering about a firewall right from the start, but I couldn't see any ports that were being blocked. A little more searching tonight and I found I forgot to configure the network port forwarding settings in the VM settings. Ooops. I had a feeling I was missing something simple and I was right. Changing the address back to [http://192.168.1.105:22300](http://192.168.1.105:22300) in the docker compose file, docker compose down, docker compose up -d so it would read the updates, powering down the virtual machine, then setting the port to forwarding for 22300 in the Virtual Machine networking settings, powered it back up, and it started working. All clients can see and now connect on my LAN!

Update:  
I realize now I may not have been specific enough for it to help another person if they are having this issue and are looking for the settings. In my case it was the VirtualBox settings for that Virtual machine in network then (usually the first network tab) port forwarding button at the bottom. Click that then put 22300 (or the port you are using) in both for host port and guest port. Leave the other settings blank.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [22 April 2025 01:47 UTC](https://discourse.joplinapp.org/t/joplin-server-refuses-connections/44395/7 "2025-04-22T01:47:18Z")

</div>

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