Log inSign up

A shared browser in a container with Neko

Neko runs a full desktop browser inside a Docker container and streams it to visitors over WebRTC, so a group can watch a page together and pass control between them. Start the ghcr.io/m1k1o/neko/firefox image with user and admin passwords, open a UDP range for the media stream and set the public IPv4, then reach the web interface through Nginx with HTTPS.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

What is Neko good for and what does it need?

Neko suits watch parties, pair browsing, demos and a disposable browser that leaves nothing on your own machine. The container holds an X server, the browser and a WebRTC encoder; viewers only need a modern web browser.

  • CPU: video encoding happens on the server and is the main cost. 2 vCPU handles 720p for a few viewers; 1080p or many viewers call for 4 vCPU.
  • Memory: 2 GB for the container at minimum, more if you open heavy sites.
  • Transfer: each viewer receives a separate video stream, so outgoing traffic grows with viewers and resolution. Compare it with the plan transfer listed on prices and watch it with usage monitoring.

Install Docker first (Docker Engine, or deploy the Docker image), and create a DNS record such as browser.example.net.

How do you write the Neko Compose file?

Create /opt/neko/compose.yaml. This example uses the variable names of the current Neko release; older v2 names such as NEKO_PASSWORD are still accepted for compatibility.

services:
  neko:
    image: ghcr.io/m1k1o/neko/firefox:latest
    restart: unless-stopped
    shm_size: 2gb
    ports:
      - "127.0.0.1:8080:8080"
      - "52000-52100:52000-52100/udp"
    environment:
      NEKO_DESKTOP_SCREEN: 1280x720@30
      NEKO_MEMBER_PROVIDER: multiuser
      NEKO_MEMBER_MULTIUSER_USER_PASSWORD: viewer-pass-change-me
      NEKO_MEMBER_MULTIUSER_ADMIN_PASSWORD: admin-pass-change-me
      NEKO_WEBRTC_EPR: 52000-52100
      NEKO_WEBRTC_ICELITE: 1
      NEKO_WEBRTC_NAT1TO1: 198.51.100.24

Key points: shm_size stops the browser from crashing on large pages; the UDP range carries audio and video and must match NEKO_WEBRTC_EPR; NEKO_WEBRTC_NAT1TO1 is the public IPv4 of your server, shown on the instance Overview tab. Other images exist for Chromium, Brave and more under the same registry path.

How do you start the container and test it?

cd /opt/neko
docker compose up -d
docker compose logs -f neko

The log shows the X server, the browser and the WebRTC module starting. Confirm the HTTP port answers locally and that the UDP range is bound:

curl -I http://127.0.0.1:8080
sudo ss -ulnp | grep ':5200'

The web port only becomes useful to others once the proxy and firewall steps are complete, because WebRTC in browsers expects a secure page.

How do you publish Neko on HTTPS?

The signalling channel is a WebSocket, so forward the upgrade headers. Install Nginx and Certbot (apt on Ubuntu and Debian; on Rocky or Alma install epel-release and then the same packages with dnf, and allow proxying with sudo setsebool -P httpd_can_network_connect 1). Create /etc/nginx/conf.d/neko.conf:

server {
    listen 80;
    listen [::]:80;
    server_name browser.example.net;
    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 1d;
    }
}
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d browser.example.net

The media stream itself does not pass through Nginx; it flows directly over the UDP range. The long read timeout keeps sessions from dropping after a minute of idle signalling.

Which firewall rules does Neko need?

Allow web traffic and the WebRTC UDP range. Without the UDP rule, the page loads and login works, but the video stays black.

# Ubuntu / Debian
sudo ufw allow 80,443/tcp
sudo ufw allow 52000:52100/udp

# Rocky / Alma
sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --permanent --add-port=52000-52100/udp
sudo firewall-cmd --reload

Note that Docker inserts its own rules for published ports, so the UDP range is reachable even before ufw allows it; the explicit rule documents intent and keeps things working if you later run Neko without Docker. The ufw guide explains the interaction in more depth.

How do sessions and control work?

Open https://browser.example.net, type a display name and the viewer password. Everyone sees the same browser; one person at a time holds control of keyboard and mouse and can request or release it from the toolbar. Logging in with the admin password adds moderation: you can kick participants, lock the room, give control to someone and mute audio.

Share the viewer password only with the people you invite, and change both passwords by editing the Compose file and running docker compose up -d. For a room open to anyone with the link, a separate long random viewer password per event is simple and effective.

How do you tune quality and bandwidth?

Resolution and frame rate drive both CPU load and traffic. NEKO_DESKTOP_SCREEN sets the default, for example 1920x1080@30 for detail or 1280x720@25 for many viewers. Admins can change resolution live from the settings panel.

Watch the cost while a session runs:

docker stats neko-neko-1
vnstat -l

If CPU stays near 100 percent, drop the frame rate before the resolution; text remains readable while motion gets slightly less smooth. Some networks block UDP; Neko can multiplex WebRTC over a single TCP port with NEKO_WEBRTC_TCPMUX, which helps viewers behind strict corporate firewalls.

How do you update Neko and fix common issues?

Images are rebuilt with browser updates, so pull regularly:

cd /opt/neko
docker compose pull
docker compose up -d
  • Black video, working chat: the UDP range is blocked or NEKO_WEBRTC_NAT1TO1 holds the wrong address.
  • Browser tabs crash: raise shm_size or memory.
  • Disconnects every minute: the proxy lacks WebSocket headers or a long read timeout.
  • Choppy picture: lower the frame rate, or move to a plan with more vCPU.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A2-4720p for a small group2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months
A4-81080p or larger watch parties4 vCPU, 8 GB RAM, 180 GB NVMe$28.80/mo$86.40 for 3 months

Questions about Neko shared virtual browser

Does the browser keep cookies between sessions?

Not by default; recreating the container resets the profile. Mount a volume on the browser profile directory if you want logins to persist, and remember that anyone with control can then use them.

Can viewers hear audio from videos?

Yes. Audio is streamed alongside the picture. Viewers may need to click once in the page so their browser allows playback.

Is Neko a replacement for remote desktop?

It shows one browser window, not a full desktop. For a whole desktop session see remote desktop with xrdp.

Can I run several rooms on one server?

Run several containers with different web ports, UDP ranges and host names. CPU and transfer grow with every room, so size the plan accordingly.

Does IPv6 work for the stream?

The setup above announces the IPv4 address for media. Signalling over the website works on IPv6 as well, but keep the IPv4 mapping for the UDP stream.