Enabling Reolink cameras HTTP(S) interface without app, client or NVR from Linux

Finding the IP address#

To find the IP address of the camera, perform an ICMP scan of the LAN with nmap:

$ nmap -sn 10.42.0.1/24
Starting Nmap 7.99 ( https://nmap.org ) at 2026-05-07 23:23 +0200
[…]
Nmap scan report for 10.42.0.13
Host is up (0.0014s latency).
[…]
Nmap done: 256 IP addresses (3 hosts up) scanned in 2.97 seconds

Enabling HTTP(S)#

However, you'll quickly discover your camera is only exposing the port tcp/9000 (proprietary Baichuan protocol).

$ nmap -p- 10.42.0.13
Starting Nmap 7.99 ( https://nmap.org ) at 2026-05-07 23:27 +0200
Nmap scan report for 10.42.0.13
Host is up (0.0040s latency).
Not shown: 65534 closed tcp ports (conn-refused)
PORT     STATE SERVICE
9000/tcp open  cslistener

Nmap done: 1 IP address (1 host up) scanned in 2.22 seconds

The official ways to configure your camera are:

The first option may not be possible for you as you didn't buy a NVR in the first place. For example, if you planned to control the cameras through Home Assistant and store videos on a NAS via FTP.

The second option may not be possible either if you are on Linux/BSD, because there are only Windows and macOS clients. Mobile applications (Android & iOS) exist too, but it will require the phone and the camera are connected on the same LAN. On one hand, even if you have a Wi-Fi camera, the Wi-Fi is not setup yet, the camera can only be accessed through Ethernet for now. On the other end, you cannot plug in your phone with RJ45. So if you don't have a router managing both the cable and Wi-Fi networks as the same LAN, even with the mobile app you won't be able to join the camera from your phone.

If you can't use any client, it's possible to manage the camera directly via a web browser, but the web interface is not enabled by default, so enabling it has to be done through Baichuan one way or another.

PS: On Linux, the Windows client seems to not be running properly through Wine.

What option is left? Hacking this shitty proprietary protocol to enable HTTP(S) without using a client nor NVR.

The maintained neolink fork, that was made through reverse engineering, supports some basic monitoring features via Baichuan but does not seem to support enabling the HTTP interface or more generally changing the configuration. However, another project, reolink_aio, a python library, is able to.

Let's do that:

cd $(mktemp -d)
python -m venv venv
source venv/bin/activate
git clone https://github.com/StarkillerOG/reolink_aio.git
cd reolink_aio/
pip3 install .
python

Then from the python console:

from reolink_aio import api
import asyncio

IP = "10.42.0.13"
username = "admin"
password = ""

async def asyncio_open_ports():
    host = api.Host(host=IP, username=username, password=password)
    await host.baichuan.set_port_enabled(api.PortType.https, True)

asyncio.run(asyncio_open_ports())

Let's check that it worked:

$ nmap -p- 10.42.0.13
Starting Nmap 7.99 ( https://nmap.org ) at 2026-05-08 01:01 +0200
Nmap scan report for 10.42.0.13
Host is up (0.0064s latency).
Not shown: 65532 closed tcp ports (conn-refused)
PORT     STATE SERVICE
80/tcp   open  http
443/tcp  open  https
9000/tcp open  cslistener

Nmap done: 1 IP address (1 host up) scanned in 2.25 seconds

Enjoy, my fellow Linux users. Be free.

Secure the admin account#

Now please access your camera settings:

  1. Create a backup administrator account.
  2. Change the default admin's password to something secure.

The default password is blank but there is a client-side check verifying the password is not empty. The issue is the check is not only applying to the new password but also the current one. The impact is you can't change the default admin's password through the UI. But making a manual HTTP request is a pain since everything is encrypted via Baichuan protocol. Maybe reolink_aio can changes the password but it was not clear how in the source code. Instead open the browser's debugger, look for common_view_string_cannot_be_blank variable in the accountLogin.<id>.js file and you can hook on the if (t.length < this.minLength) return t ? this.$t( line. Stepping over was not enough, so you can add a script override and change the line if (t.length < - 1) return t ? this.$t( to have a condition that is always true. That was you can change the default blank password.

Share