A Qt6 application for discovering ONVIF-compliant IP cameras on a local network using WS-Discovery protocol.
- Discovers ONVIF devices via multicast and unicast probes
- Configurable subnet (CIDR notation), listen times, and probe rate
- Displays discovered cameras with IP, port, name, discovery method, and XAddrs
- Real-time logging of discovery progress
- Qt 6.2+ (Core, Network, Widgets modules)
- C++17 compatible compiler (GCC 10+, Clang 12+, MSVC 2019+)
- CMake 3.16+ or qmake (Qt 6)
- Qt 6 libraries (Core, Network, Widgets, GUI)
<path-to-qt6>/bin/qmake onvif_camera_discovery.pro
makecmake -B build
cmake --build build./onvif_camera_discovery- Enter the target subnet in CIDR notation (e.g.,
192.168.1.0/24) - Adjust discovery parameters if needed:
- Multicast Listen (sec): Time to wait for multicast responses (default: 3)
- Unicast Listen (sec): Time to wait for unicast responses per IP (default: 2)
- Unicast Rate (ms): Delay between unicast probes (default: 20, set to 0 for no delay)
- Click Start Discovery
- Results appear in the table with camera details
- Log output shows real-time discovery progress
- The application sends UDP probes to ports 3702 (multicast) and target device ports
- Firewall must allow outbound UDP and inbound responses
- Works on IPv4 networks only
├── MainWindow.h/.cpp/.ui # Main UI and discovery logic
├── CameraDiscovery.h/.cpp # WS-Discovery implementation
├── CameraInfo.h # Camera data structure
├── main.cpp # Entry point
├── onvif_camera_discovery.pro # qmake project file
└── CMakeLists.txt # CMake project file
Implements WS-Discovery (DPWS) for ONVIF device discovery:
- Sends
Probemessages to multicast address239.255.255.250:3702 - Sends unicast
Probeto each IP in subnet range - Parses
ProbeMatchesresponses for device XAddrs - Extracts camera info from device service WSDL