
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.
| Feature | Reolink Video Doorbell WiFi D340W | Compatible USB cameras |
|---|---|---|
| Windows live video | Yes, using RTSP. | Yes, through USB. |
| Use in either camera slot | Yes. | Yes. Use a different physical USB device in each slot. |
| Manual MP4 recording | Yes. | Yes. |
| Listen to incoming audio | Yes, from the doorbell microphone. | Yes, using an available camera microphone or a separate selected PC microphone. |
| Audio in recordings | Yes, when camera audio is available before recording starts. | Yes, with a selected, available microphone and Video only turned off. |
| Android live viewing and listening | Yes, through the Windows server. | Yes, through the Windows server; listening requires available microphone audio. |
| Two-way talk from Windows or Android | Yes, through the doorbell speaker. | Not supported as camera talk-back. A USB camera is not a network intercom. |
| Doorbell-press notifications on Android | Yes, with ONVIF and camera alerts enabled. | Not available. |
| Person-detection notifications on Android | Available when the camera sends the supported ONVIF person events. | Not available. |
| Person-triggered MP4 recording | Available with supported ONVIF person events and Person: record MP4 enabled. | Not available. |
| MQTT recording commands and recording state | Yes. | Yes. |
| MQTT person states and PERSON events | Available with supported ONVIF person events. | Not available. |
| MQTT DOORBELL events | Yes, with supported ONVIF doorbell events. | Not available. |
| Saved setup and reopening on launch | Yes. | Yes, while the saved USB device remains available. |
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.
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
- Extract the complete Windows application package into a permanent folder.
- Keep the supplied support files and application folders with the EXE. Do not move only the EXE.
- Open B9X Camera Server. Each camera panel has its own viewing and recording controls.
- Allow camera and microphone access in Windows when needed. If Windows Firewall asks about network access, allow the app on your trusted private network.
- 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
- Plug the camera into the PC. Close other apps using that camera.
- Click Refresh to scan for devices. Refresh closes both current previews, so stop recordings first.
- In Camera 1, select the camera from the device list.
- Choose an Audio source if you want microphone audio. Choose Video only for a silent USB recording.
- Click Open camera. Wait until the live image appears.
- 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
- Complete the D340W’s setup in the Reolink app.
- Connect the camera and Windows PC to the same local network. Avoid guest networks that block devices from reaching each other.
- Enable RTSP on the D340W. Enable ONVIF too if you want supported alerts or person-triggered recording.
- Find the camera’s IP address in its app or your router. A router DHCP reservation helps keep that address unchanged.
- Have the D340W’s camera account username and password ready.
Enter the connection in B9X
- Click Add RTSP camera….
- Enter the full RTSP URI for your camera.
- Enter the username and password in their separate fields. Do not put them inside the URI.
- Click Use in Camera 1 or Use in Camera 2.
- Allow time for authentication and the first video frame. A network startup attempt can take up to 30 seconds.
| Camera / stream | URI example |
|---|---|
| Reolink substream | rtsp://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.
/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
- Confirm the camera’s live preview is working.
- Click its Save folder… button and choose where to store MP4 files. Documents is the default location.
- If the network camera supplies audio, wait for camera audio to become available before starting an audio recording.
- Click Start recording. The panel shows recording time.
- Click Stop recording when finished.
- Wait for “Saved” before closing the app or opening the MP4.
- 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.
- Keep B9X Camera Server open with at least one live camera.
- Connect the Android phone to the same local network as the PC.
- Click Start phone viewing in the Windows app. Wait for its ready status.
- Click Pair on Wi-Fi to create a pairing QR code.
- Open the Android viewer’s settings/pairing area and tap Scan QR. Allow camera permission for scanning.
- 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.
- 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.
- Give the Windows PC a stable local IP address, preferably with a router DHCP reservation.
- Use a public hostname or dynamic DNS hostname that points to your internet connection.
- In your router, forward a public TCP port to the Windows PC’s phone-viewing port. The current default internal port is 18443.
- Allow that listening port through Windows Firewall. Check that your internet service allows inbound connections; carrier-grade NAT can prevent ordinary port forwarding.
- 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. - Click Pair over internet and pair the phone with the new code.
- 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.
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
- Open the desired Android camera tab.
- Tap Talk and allow microphone permission.
- Wait for talk to connect, then speak normally.
- 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
- Enable ONVIF in the camera and confirm its ONVIF port. The port is not necessarily the RTSP port.
- Enter the correct ONVIF port for that Windows camera slot. The field defaults to 8000; use your camera’s actual setting.
- Enable Camera alerts for the slot and keep phone viewing running.
- On Android, enable Camera alerts in background and grant notification permission.
- 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.
10. Record automatically when a person is detected
- Open your Reolink D340W and confirm its live preview.
- Enable ONVIF and person detection in the camera, and set the correct ONVIF port in B9X.
- Choose the slot’s recording folder.
- Select Person: record MP4.
- 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
- Start phone viewing and select an entry in the Windows Paired phones list.
- To rename it, type a recognizable name in the text box above Save name, then click Save name.
- 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
- Keep the installed EXE and its support files in a permanent folder.
- Place
Enable-Windows-Startup.cmd,Disable-Windows-Startup.cmd, andInstall-Windows-Startup.ps1together, for example beside the EXE. - Double-click Enable-Windows-Startup.cmd. You do not need to run the PowerShell file separately.
- Select the installed B9X Camera Server EXE in the file chooser.
- 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.
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.
- Click MQTT settings in the Windows app.
- Enable MQTT and enter your broker’s hostname/IP, port, and account credentials if required.
- Use the broker’s configured port. Common ports are 1883 without TLS and 8883 with TLS. Enable TLS only when the broker supports it.
- Leave the topic prefix as
b9xfor the examples below. Give separate servers different prefixes. - Click Save / Apply and check that the status says connected.
- 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
| Topic | Message | Action |
|---|---|---|
b9x/cam1/set | ON / OFF | Start / stop Camera 1 recording. |
b9x/cam2/set | ON / OFF | Start / 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
| Topic | Possible messages | Meaning |
|---|---|---|
b9x/status | ON, OFF | Server MQTT connection online / offline. |
b9x/cam1b9x/cam2 | ON, OFF, BUSY, ERR, NA | Recording; stopped; opening/starting/finalizing; error; unavailable. |
b9x/cam1/personb9x/cam2/person | ON, OFF, NA | Person present; clear; person status unavailable. |
b9x/cam1/eventb9x/cam2/event | PERSON, DOORBELL | A new person detection or doorbell press at that camera. |
b9x/cam1/replyb9x/cam2/reply | ON OK, OFF OK, ON ERR, ON NA, NA | Latest 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
- Open each camera and confirm a live image.
- Record a short MP4 from each slot, stop normally, and play both files.
- Pair one Android phone on Wi-Fi and test its camera tabs and available audio.
- If supported, test talk, a real doorbell press, and a person walking into view.
- Close and reopen Windows B9X Camera Server to verify saved camera restoration.
- Only then add internet access, automatic startup, or MQTT as needed.
Manufacturer connection references: Reolink RTSP guide. Reolink menu names can vary with firmware.

