B9X Camera Server

B9X ELECTRONICS · GETTING STARTED

B9X Camera Server

View two cameras, save video on your Windows PC, and check your cameras from an Android phone.

B9X Camera Server connects your cameras to a Windows computer. The computer provides live viewing, MP4 recording, and a paired connection for Android viewers. It also supports camera alerts and MQTT automation with compatible equipment.

Two camera slots

Use one or two cameras. Each slot can use a compatible USB camera or a Reolink D340W doorbell.

MP4 recording

Start and stop each camera independently. Choose a separate save folder for each camera.

Android viewing

Pair by QR code or pairing text. Use camera tabs to switch views and listen to available audio.

Talk and alerts

Supported cameras provide two-way talk, doorbell notifications, and person-detection alerts.

Automatic setup recovery

Saved cameras reopen on launch. Failed startup connections receive a limited number of retries.

MQTT automation

Control recording and receive recording states, person states, and doorbell events through your broker.

Tested cameras and available features

B9X Camera Server has been tested to work with the Reolink Video Doorbell WiFi, model D340W, and compatible USB cameras. The available functions differ by camera type. Use this comparison when choosing what to connect.

Features available in B9X Camera Server
FeatureReolink Video Doorbell WiFi D340WCompatible USB cameras
Windows live videoYes, using RTSP.Yes, through USB.
Use in either camera slotYes.Yes. Use a different physical USB device in each slot.
Manual MP4 recordingYes.Yes.
Listen to incoming audioYes, from the doorbell microphone.Yes, using an available camera microphone or a separate selected PC microphone.
Audio in recordingsYes, when camera audio is available before recording starts.Yes, with a selected, available microphone and Video only turned off.
Android live viewing and listeningYes, through the Windows server.Yes, through the Windows server; listening requires available microphone audio.
Two-way talk from Windows or AndroidYes, through the doorbell speaker.Not supported as camera talk-back. A USB camera is not a network intercom.
Doorbell-press notifications on AndroidYes, with ONVIF and camera alerts enabled.Not available.
Person-detection notifications on AndroidAvailable when the camera sends the supported ONVIF person events.Not available.
Person-triggered MP4 recordingAvailable with supported ONVIF person events and Person: record MP4 enabled.Not available.
MQTT recording commands and recording stateYes.Yes.
MQTT person states and PERSON eventsAvailable with supported ONVIF person events.Not available.
MQTT DOORBELL eventsYes, with supported ONVIF doorbell events.Not available.
Saved setup and reopening on launchYes.Yes, while the saved USB device remains available.
Supported cameras: compatible USB cameras and the Reolink Video Doorbell WiFi, model D340W. Other network-camera models are not supported. USB audio depends on an available camera microphone or a separate PC microphone; USB cameras do not provide the D340W’s talk-back, doorbell, or person-event features.

For doorbell and person alerts, keep the Windows event service running and configure ONVIF as described below. Android sounds also require notification permission. Internet viewing requires the server’s remote-access setup for both supported camera types.

Keep the Windows PC running. Android viewing, alerts, and recording depend on B9X Camera Server remaining open and connected. A sleeping or switched-off PC cannot provide these services.

1. What you need

  • A Windows 10 or Windows 11 64-bit PC with enough free space for recordings.
  • One or two compatible USB cameras, Reolink D340W doorbells, or a combination.
  • For network cameras: the camera’s local IP address and camera username/password.
  • For mobile viewing: an Android phone with the matching B9X viewer installed.
  • For alerts: a compatible camera with ONVIF enabled and the required events available.
  • For MQTT: an existing MQTT broker, such as Mosquitto. This feature is optional.

What do the terms mean? RTSP supplies a network camera’s video/audio stream. ONVIF supplies supported camera events. MQTT carries short commands and status messages; it does not carry the video.

Supported camera choices are compatible USB cameras and the Reolink Video Doorbell WiFi D340W only. Use the D340W for camera talk-back, doorbell alerts, and supported ONVIF person events. USB cameras provide live video and recording, with audio when a microphone is available.

2. First launch

  1. Extract the complete Windows application package into a permanent folder.
  2. Keep the supplied support files and application folders with the EXE. Do not move only the EXE.
  3. Open B9X Camera Server. Each camera panel has its own viewing and recording controls.
  4. Allow camera and microphone access in Windows when needed. If Windows Firewall asks about network access, allow the app on your trusted private network.
  5. Set up one camera and confirm its preview before adding the second.

For reliable monitoring, connect the PC to power and adjust its power settings so it stays awake. Turning off the display is different from putting the PC to sleep.

3. Add a USB camera

  1. Plug the camera into the PC. Close other apps using that camera.
  2. Click Refresh to scan for devices. Refresh closes both current previews, so stop recordings first.
  3. In Camera 1, select the camera from the device list.
  4. Choose an Audio source if you want microphone audio. Choose Video only for a silent USB recording.
  5. Click Open camera. Wait until the live image appears.
  6. Repeat in Camera 2 with a different device, if required.

Automatic lets Windows select a microphone. A named microphone selects that device explicitly. To change the audio source, select it and reopen the camera. Hear microphone plays the selected microphone locally; headphones help prevent feedback.

If two USB cameras are unreliable on one hub, try separate PC USB ports. One physical USB camera cannot be opened in both slots at the same time.

4. Add a Reolink D340W doorbell

Prepare the camera

  1. Complete the D340W’s setup in the Reolink app.
  2. Connect the camera and Windows PC to the same local network. Avoid guest networks that block devices from reaching each other.
  3. Enable RTSP on the D340W. Enable ONVIF too if you want supported alerts or person-triggered recording.
  4. Find the camera’s IP address in its app or your router. A router DHCP reservation helps keep that address unchanged.
  5. Have the D340W’s camera account username and password ready.

Enter the connection in B9X

  1. Click Add RTSP camera….
  2. Enter the full RTSP URI for your camera.
  3. Enter the username and password in their separate fields. Do not put them inside the URI.
  4. Click Use in Camera 1 or Use in Camera 2.
  5. Allow time for authentication and the first video frame. A network startup attempt can take up to 30 seconds.
Example local camera addresses
Camera / streamURI example
Reolink substreamrtsp://192.168.1.50:554/Preview_01_sub

Replace the example IP address with your camera’s address. Reolink paths can vary by model/firmware; some use /h264Preview_01_sub. Use the camera’s documented H.264 stream. Start with the D340W’s H.264 substream to reduce network and decoding load.

Use the full URI for Reolink. Entering only an IP address in B9X assumes port 554 and /stream2, which is not the D340W address shown above. Enter the full Reolink URI instead.

To replace or edit an existing camera, use Change Camera 1 or Change Camera 2, then enter the replacement connection details. Stop that slot’s recording first.

5. Record and play video

  1. Confirm the camera’s live preview is working.
  2. Click its Save folder… button and choose where to store MP4 files. Documents is the default location.
  3. If the network camera supplies audio, wait for camera audio to become available before starting an audio recording.
  4. Click Start recording. The panel shows recording time.
  5. Click Stop recording when finished.
  6. Wait for “Saved” before closing the app or opening the MP4.
  7. Open the selected folder in Windows File Explorer and double-click the saved MP4 to play it.

Both slots can record independently, producing separate files. File names identify the slot and recording time. Available audio is camera/source dependent. A microphone selection for a USB camera is different from the built-in audio in an RTSP stream.

Stopping a recording takes a moment because the app must finish the MP4. Closing Windows or removing power before this completes can leave an incomplete file. Check free disk space regularly.

6. Pair an Android phone on Wi-Fi

Start here before trying internet access. Pairing authorizes a particular phone to connect to your Windows server.

  1. Keep B9X Camera Server open with at least one live camera.
  2. Connect the Android phone to the same local network as the PC.
  3. Click Start phone viewing in the Windows app. Wait for its ready status.
  4. Click Pair on Wi-Fi to create a pairing QR code.
  5. Open the Android viewer’s settings/pairing area and tap Scan QR. Allow camera permission for scanning.
  6. Scan the Windows QR code. Alternatively, click Copy pairing code on Windows, transfer the complete code privately to the phone, paste it into the pairing field, and tap Pair.
  7. When pairing succeeds, select the Camera 1 or Camera 2 tab to view that camera.

Codes are one-time and expire after about ten minutes. Generate a fresh code for each additional phone. Treat pairing codes like passwords.

The server supports up to 16 paired phone entries. Actual simultaneous viewing performance depends on PC speed, camera settings, Wi-Fi, and internet upload capacity; 16 entries is not a guarantee that every network will support 16 smooth viewers.

7. View over the internet

Wi-Fi pairing does not automatically create internet access. An internet pairing must contain an address that reaches your Windows PC from outside your home network.

  1. Give the Windows PC a stable local IP address, preferably with a router DHCP reservation.
  2. Use a public hostname or dynamic DNS hostname that points to your internet connection.
  3. In your router, forward a public TCP port to the Windows PC’s phone-viewing port. The current default internal port is 18443.
  4. Allow that listening port through Windows Firewall. Check that your internet service allows inbound connections; carrier-grade NAT can prevent ordinary port forwarding.
  5. In the Windows app, enter your public hostname in the internet-host field and the router’s public port in the internet-port field. Enter a hostname, not an https:// URL or camera RTSP URI.
  6. Click Pair over internet and pair the phone with the new code.
  7. Turn off Wi-Fi on the phone and test using mobile data.

If the router uses public TCP 18443 and the server uses its default port, forward 18443 → Windows-PC-IP:18443. If you previously configured another server listening port, use that actual port instead.

Pairing can be done directly over the internet once the address, port forwarding, and firewall work. Pairing on the LAN first is a useful test, but is not required. Changing a hostname file alone does not update an already-saved phone pairing; generate an internet pairing code for the intended address.

Use the Windows app’s internet pairing controls rather than manually editing configuration files. Do not forward the camera’s RTSP or ONVIF ports for phone viewing. Remote phone traffic goes to the Windows server.

Some routers cannot reach their own public hostname from inside the same LAN. If an internet pairing fails only on home Wi-Fi, test it using mobile data.

8. Listen and talk

Listen to the camera

In the Android camera view, tap Listen. Raise the phone’s media volume. The camera must have a microphone, audio enabled, and a supported audio stream. On Windows, use the camera’s Hear camera audio control when available.

Speak through a supported camera

  1. Open the desired Android camera tab.
  2. Tap Talk and allow microphone permission.
  3. Wait for talk to connect, then speak normally.
  4. Tap Stop talking when finished.

Windows also provides Talk through camera for supported hardware. Listening and talking may be used together, but use headphones or keep the phone away from the camera’s speaker to reduce acoustic feedback. Only one talk session can control a camera at a time; stop talking on one device before starting on another.

Two-way talk is camera-specific. A camera may provide video and incoming audio without supporting talk-back in B9X.

9. Doorbell and person alerts on Android

  1. Enable ONVIF in the camera and confirm its ONVIF port. The port is not necessarily the RTSP port.
  2. Enter the correct ONVIF port for that Windows camera slot. The field defaults to 8000; use your camera’s actual setting.
  3. Enable Camera alerts for the slot and keep phone viewing running.
  4. On Android, enable Camera alerts in background and grant notification permission.
  5. Press the doorbell and confirm a notification arrives.

Each slot has a separate chime. On Android 8 or later, tap Camera 1 chime or Camera 2 chime to open the relevant Android notification settings and choose a sound.

Person-detection sounds

Enable the camera’s own person detection. In the Android settings, enable that camera’s person alerts. Use Camera 1 person sound or Camera 2 person sound to select a separate notification sound on Android 8 or later. Android 7 uses the phone’s default notification sound for person alerts.

These are the camera’s person-recognition events, not a generic motion detector added to USB video. Camera sensitivity and detection zones affect results. A continuing person presence does not repeatedly chime; person notifications have a 30-second cooldown per slot.

Notification volume, Silent mode, Do Not Disturb, and Android background restrictions can affect delivery. Keep the Windows server reachable. If the viewer was force-stopped, reopen it to resume background alerts.

“Doorbell alerts listening” means the listener is connected. It does not prove that the camera has sent a button event. Likewise, working doorbell alerts do not prove that person events are supported.

10. Record automatically when a person is detected

  1. Open your Reolink D340W and confirm its live preview.
  2. Enable ONVIF and person detection in the camera, and set the correct ONVIF port in B9X.
  3. Choose the slot’s recording folder.
  4. Select Person: record MP4.
  5. Walk through the camera’s detection area and check for a person event and recording status.

A new person-detection event starts a recording. It continues while a person is reported and for about 20 seconds after the last fresh person-present state. Another detection extends the clip.

There is no pre-event recording buffer in this version. Manual recordings are not automatically stopped by person events. The Stop recording button can stop an automatic clip. Clearing Person: record MP4 also ends an automatic clip through normal finalization.

The event service starts automatically when this option is enabled and the preview is ready. No Android phone needs to be paired. If you deliberately stop phone viewing, event monitoring stops too; start phone viewing again to resume it.

Sound alerts and automatic recording are separate options. You can receive a person notification without saving an MP4.

11. Rename or remove paired phones

  1. Start phone viewing and select an entry in the Windows Paired phones list.
  2. To rename it, type a recognizable name in the text box above Save name, then click Save name.
  3. To revoke its access, select it and click Remove phone.

The name box labels the selected phone; it is not a hostname or camera-address field. Removing a phone requires it to pair again before it can reconnect. Use this list to free entries if the 16-phone limit is reached. Android’s Forget button clears its local pairing; remove obsolete entries on Windows as well.

12. Saved settings and automatic startup

Camera choices, saved network-camera details, recording folders, and supported options are retained for the same Windows user. On a normal launch, the server tries to reopen its saved cameras. The slots start a few seconds apart; a failed startup receives up to four attempts per slot. Startup recovery does not mean a manual recording automatically resumes after a reboot.

Start the app after a reboot

  1. Keep the installed EXE and its support files in a permanent folder.
  2. Place Enable-Windows-Startup.cmd, Disable-Windows-Startup.cmd, and Install-Windows-Startup.ps1 together, for example beside the EXE.
  3. Double-click Enable-Windows-Startup.cmd. You do not need to run the PowerShell file separately.
  4. Select the installed B9X Camera Server EXE in the file chooser.
  5. After a reboot, sign into that Windows account. The app launches about 20 seconds after sign-in and restores its saved cameras.

To turn this off, double-click Disable-Windows-Startup.cmd. If you move the app, run Enable again and select its new location.

Windows sign-in is required. B9X Camera Server is a desktop application, not a service that runs before login. A reboot with Windows left at the sign-in screen will not start the camera server.

13. MQTT setup, commands, and events

MQTT is optional. Use it to connect B9X Camera Server to automation software or an MQTT dashboard. You need a running broker; B9X connects as a client.

  1. Click MQTT settings in the Windows app.
  2. Enable MQTT and enter your broker’s hostname/IP, port, and account credentials if required.
  3. Use the broker’s configured port. Common ports are 1883 without TLS and 8883 with TLS. Enable TLS only when the broker supports it.
  4. Leave the topic prefix as b9x for the examples below. Give separate servers different prefixes.
  5. Click Save / Apply and check that the status says connected.
  6. In your MQTT viewer, subscribe to b9x/#.

TLS connections validate the broker’s certificate and hostname. Use a trusted certificate and its matching hostname. A broker password requires a username.

Commands you send

TopicMessageAction
b9x/cam1/setON / OFFStart / stop Camera 1 recording.
b9x/cam2/setON / OFFStart / stop Camera 2 recording.

Disable Retain when sending commands. Retained commands are rejected. START and STOP are accepted aliases. Open the camera and choose its save folder first.

States and events you receive

TopicPossible messagesMeaning
b9x/statusON, OFFServer MQTT connection online / offline.
b9x/cam1
b9x/cam2
ON, OFF, BUSY, ERR, NARecording; stopped; opening/starting/finalizing; error; unavailable.
b9x/cam1/person
b9x/cam2/person
ON, OFF, NAPerson present; clear; person status unavailable.
b9x/cam1/event
b9x/cam2/event
PERSON, DOORBELLA new person detection or doorbell press at that camera.
b9x/cam1/reply
b9x/cam2/reply
ON OK, OFF OK, ON ERR, ON NA, NALatest recording-command result, or no result available.

An OK reply means the command was accepted or its requested condition was already satisfied. Confirm actual recording using b9x/cam1 or b9x/cam2; a reply is not proof that an MP4 was saved.

Availability, states, and replies are retained. Events are not retained and do not have an OFF event. Check b9x/status before trusting an old retained camera value. Windows Start recording and Stop recording buttons update the same recording-state topics.

Person and doorbell MQTT events need compatible ONVIF event support and the event service running. No phone has to be connected. The Android notification switches do not control MQTT events. Selecting Person: record MP4 is not required just to publish person events.

Example

To start Camera 1, publish ON to b9x/cam1/set. Expect the camera state to become ON once recording starts. Publish OFF to stop it; finalization may show BUSY before OFF.

14. Troubleshooting

No image appears at startup

Allow time for camera startup and retries. Check that the camera has power, its IP address has not changed, and the PC has network access. Close other USB-camera apps. After retries finish, use Open camera or Change Camera to reconnect. Stop any recordings before using Refresh, because it closes both previews.

A network camera rejects the login

Check the camera account, not just the manufacturer’s cloud account. Re-enter the password in its separate field. Confirm RTSP is enabled and the URI path matches the camera. A Reolink camera usually needs its full URI rather than an IP-only entry.

Android says pairing failed or keeps reconnecting

Start phone viewing on Windows, generate a new unexpired pairing code, and verify the address and firewall. For Wi-Fi pairing, avoid guest Wi-Fi and confirm the PC and phone can reach each other. For internet pairing, test on mobile data and check TCP port forwarding to the PC’s actual listening port. Pairing cannot create a router forwarding rule for you.

The maximum of 16 phones is full

Select obsolete entries under Paired phones and click Remove phone, then generate a new code. Repeated pairing can leave entries that should be removed. Forgetting the pairing on Android does not free the Windows entry by itself.

I see video but hear no camera audio

Tap Listen on Android, check media volume, and confirm the camera’s microphone/audio setting is enabled. Wait for audio to become available before recording. Video-only streams and cameras without supported audio cannot supply sound. A USB microphone choice does not enable an RTSP camera’s microphone.

Talk is unavailable or sounds choppy

Confirm your model supports B9X talk-back and Android microphone permission is allowed. Stop another device’s talk session. Move closer to Wi-Fi, reduce competing traffic, and try the camera’s H.264 substream. Use headphones to reduce feedback. Video compatibility alone does not establish talk compatibility.

The listener says ready, but no doorbell or person sound arrives

Check ONVIF, the configured ONVIF port, and Camera alerts on Windows. On Android, allow notifications and background camera alerts, then check the relevant chime/person notification channel, volume, and Do Not Disturb. For person alerts, confirm the camera actually reports a person event rather than only ordinary motion.

No recording was saved

Check the selected folder, free disk space, and the panel’s error/status message. Stop normally and wait for Saved before closing. Automatic person recording also needs actual person events. Test a short manual recording and play the MP4 before relying on unattended recording.

MQTT is online, but I cannot see camera messages

Subscribe to b9x/# on the same broker and check whether you chose a different prefix. Expand the cam1 and cam2 topics in the viewer. Some dashboards update an existing retained value instead of adding a new log entry. Recording state is on b9x/cam1 and b9x/cam2, not on a /record/state topic.

The broker shows topics beginning with $SYS

Those are the MQTT broker’s own statistics, not camera events. Subscribe to b9x/# to focus on this server’s messages, and remove a $SYS/# subscription if you do not want broker statistics in your viewer.

The app did not open after a reboot

Sign into the same Windows account used when enabling startup and wait about 20 seconds. Run Enable-Windows-Startup.cmd again if the EXE moved. Keep its support files in place. This desktop app does not launch while Windows remains at the sign-in screen.

A simple first-day test

  1. Open each camera and confirm a live image.
  2. Record a short MP4 from each slot, stop normally, and play both files.
  3. Pair one Android phone on Wi-Fi and test its camera tabs and available audio.
  4. If supported, test talk, a real doorbell press, and a person walking into view.
  5. Close and reopen Windows B9X Camera Server to verify saved camera restoration.
  6. Only then add internet access, automatic startup, or MQTT as needed.

Manufacturer connection references: Reolink RTSP guide. Reolink menu names can vary with firmware.

Back to setup requirements ↑