> For the complete documentation index, see [llms.txt](https://sugoi.gitbook.io/lanraragi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sugoi.gitbook.io/lanraragi/advanced-usage/network-interfaces.md).

# Network Interface Setup

By default, LRR listens on all IPv4 Interfaces on port 3000. To change this, you have to specify a different network location when starting the app.

## Building your network location string

The network location format accepted by LRR looks like this:\
`http(s)://*:(port)`

All listen locations [supported by "listen" in Mojo::Server::Daemon](http://www.mojolicious.org/perldoc/Mojo/Server/Daemon#listen) are valid.

For example, if you want to listen on port 5555 with SSL only, the string would look like:\
`https://*:5555?cert=/path/to/server.crt&key=/path/to/server.key`

Once you have your string ready, you can assign it to the environment variable `LRR_NETWORK`. It'll be picked up automagically.

{% hint style="info" %}
If you're using Docker, remember to mount your cert and keys to a path reachable by the container:\
The arguments above will resolve within the container's filesystem!
{% endhint %}

## Source Installs

```bash
export LRR_NETWORK=http://127.0.0.1:8000
npm start

> lanraragi@0.6.0 start /mnt/c/Users/tiki/Desktop/lrr
> perl ./script/launcher.pl -f ./script/lanraragi

ｷﾀ━━━━━━(ﾟ∀ﾟ)━━━━━━!!!!!
[LANraragi] [info] LANraragi 0.6.0-BETA.2 (re-)started. (Debug Mode)
[...]
[Mojolicious] Listening at "http://127.0.0.1:8000"
Server available at http://127.0.0.1:8000
```

## Docker

```bash
docker run --name=lanraragi -p 8000:8000 \
--mount type=bind,source=[YOUR_CONTENT_DIRECTORY],\
target=/home/koyomi/lanraragi/content \
-e LRR_NETWORK=http://*:8000 difegue/lanraragi
```

## Docker with SSL

```bash
docker run --name=lanraragi-ssl -p 3333:3333 \
--mount type=bind,source=[YOUR_CONTENT_DIRECTORY],\
target=/home/koyomi/lanraragi/content \
--mount type=bind,source=[DIRECTORY_CONTAINING_SSL_CERT],target=/ssl \
-e LRR_NETWORK="https://*:3333?cert=/ssl/crt.crt&key=/ssl/crt.key" difegue/lanraragi
```

Notice that the certificate and key must come from your host filesystem and henceforth might need a second --mount command.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sugoi.gitbook.io/lanraragi/advanced-usage/network-interfaces.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
