docs(user): using desktop application as server (closes #6431)

This commit is contained in:
Elian Doran
2025-10-13 17:50:37 +03:00
parent 985a54edd1
commit 5071f61174
10 changed files with 120 additions and 42 deletions

View File

@@ -230,7 +230,45 @@
],
"format": "markdown",
"dataFileName": "Desktop Installation.md",
"attachments": []
"attachments": [],
"dirFileName": "Desktop Installation",
"children": [
{
"isClone": false,
"noteId": "nRqcgfTb97uV",
"notePath": [
"pOsGYCXsbNQG",
"Otzi9La2YAUX",
"poXkQfguuA0U",
"nRqcgfTb97uV"
],
"title": "Using the desktop application as a server",
"notePosition": 10,
"prefix": null,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
{
"type": "relation",
"name": "internalLink",
"value": "WOcw2SLH6tbX",
"isInheritable": false,
"position": 10
},
{
"type": "relation",
"name": "internalLink",
"value": "x3i7MxGccDuM",
"isInheritable": false,
"position": 20
}
],
"format": "markdown",
"dataFileName": "Using the desktop application .md",
"attachments": []
}
]
},
{
"isClone": false,
@@ -1039,28 +1077,18 @@
"value": "bx bx-mobile-alt",
"isInheritable": false,
"position": 60
},
{
"type": "relation",
"name": "internalLink",
"value": "nRqcgfTb97uV",
"isInheritable": false,
"position": 70
}
],
"format": "markdown",
"dataFileName": "Mobile Frontend.md",
"attachments": [
{
"attachmentId": "CyswsZZ3GwtQ",
"title": "mobile-tablet.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "Mobile Frontend_mobile-tab.png"
},
{
"attachmentId": "txzBbmMtgsrx",
"title": "mobile-smartphone.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "Mobile Frontend_mobile-sma.png"
}
]
"attachments": []
},
{
"isClone": false,

View File

@@ -0,0 +1,25 @@
# Using the desktop application as a server
Sometimes, setting up a [dedicated server installation](../Server%20Installation.md) is not feasible. The desktop application ships with a fully functional server instance by default.
You can access this web interface locally by navigating to [http://localhost:37840/login](http://localhost:37840/login).
> [!NOTE]
> The server embedded in the desktop application will only run as long as the desktop application itself is running. So closing the application will also close the server. To overcome this, you can try hiding the application in the system tray.
## Mobile interface
By default, this will display the desktop user interface, even on mobile. To switch to the mobile version, simply go to the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> and select “Switch to the mobile version”.
## Allowing the port externally on Windows with Windows Defender Firewall
First, find out the IP of your desktop server by running `ipconfig` in your local terminal. Then try accessing `http://<ip>:37840/login` on another device. If it doesn't work, then most likely the port is blocked by your operating system's firewall.
If you use Windows Defender Firewall:
1. Go to Windows's start menu and look for “Windows Defender Firewall with Advanced Security”.
2. Go to “Inbound Rules” on the left tree, and select “New Rule” in the “Actions” sidebar on the right.
3. Select “Port” and press “Next”.
4. Type in `37840` in the “Specific local ports” section and then press “Next”.
5. Leave “Allow the connection” checked and press “Next”.
6. Configure the networks to apply to (check all if unsure) and then press “Next”.
7. Add an appropriate name to the rule (e.g. “Trilium Notes”) and press “Finish”.

View File

@@ -5,15 +5,9 @@ Mobile frontend is limited in features compared to full desktop frontend. See be
Note that this is not an Android/iOS app, this is just mobile friendly web page served on the [server edition](Server%20Installation.md).
## Screenshots
## Testing via the desktop application
### Mobile phone
![](Mobile%20Frontend_mobile-sma.png)
### Tablet
![](Mobile%20Frontend_mobile-tab.png)
If you are running Trilium without a dedicated [server installation](Server%20Installation.md), you can still test the mobile application using the desktop application. For more information, see <a class="reference-link" href="Desktop%20Installation/Using%20the%20desktop%20application%20.md">Using the desktop application as a server</a>. To access it go to `http://<ip>:37840/login?mobile` .
## Limitations

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB