Installing the server
Access modes: how people reach your instance
The first question of the installer is "How will people reach this instance?". There are three answers: with the IP address and a port, with a domain name, or through a tunnel. The choice decides whether the connection is encrypted, whether a port must be open, and whether AI assistants on the internet can connect.
The three modes compared
| IP address and port | Domain name | Tunnel | |
|---|---|---|---|
| Installer wording | With the IP address and a port (plain HTTP, simplest) | With a domain name (HTTPS) | Through a tunnel (no open port, works behind a home router) |
--mode | ip | domain | tunnel-quick or tunnel-named |
| Address | http://<address>:8787 | https://brain.example.com | Quick: a random https://….trycloudflare.com. Permanent: your own hostname. |
| Encrypted | No | Yes, once the certificate is issued | Yes |
| Needs | Nothing | A domain, a DNS record, ports 80 and 443 reachable | Outbound internet access; a free Cloudflare account for a permanent tunnel |
| Reachable from the internet | Only if you expose the port, which is unsafe without encryption | Yes | Yes |
| Suited to AI assistants | Assistants on the same network only | Yes | Permanent: yes. Quick: the address changes at every restart. |
Domain name
The lasting choice for a server with a public IP address. The installer looks at the machine and adapts: if nginx or Apache is installed it adds its own site behind it; if nothing listens on ports 80 and 443 Memex serves the domain itself with automatic Let’s Encrypt certificates; if another program holds the ports it listens locally and tells you what to forward.
- Your own domain with HTTPS: nginx, Apache or Memex alone, including the DNS record.
- Behind an existing reverse proxy: Caddy, Traefik, HAProxy and others.
Tunnel
For a machine without a public IP address or behind a home router: Memex starts cloudflared, which connects out to Cloudflare, and people reach the instance through Cloudflare. No port is opened. A quick tunnel needs no account and is meant for trying Memex; a permanent tunnel gives a stable address on your domain. See Cloudflare tunnel.
IP address and port
Plain HTTP on a port, 8787 by default. The simplest mode and a good first try on a home or office network or behind a VPN. Passwords and notes travel unencrypted, so it is not for use across the internet. See Local network.
Changing mode later
Run sudo memex install again, or choose Reinstall or change the access in the memex menu. The configuration is rewritten after confirmation, the data is kept and the service is restarted. The access mode, the listening address, the domain and the tunnel are decided there and are read-only in memex config.
When the address of the instance changes, links already sent stop working and connected AI assistants must be reconnected with the new address.