ONVIF discovery and services · 21/30

ONVIF Device Service URL: What the xaddr Actually Means

Understand the address returned by discovery and why the media stream URL may be different.

Target question: ONVIF device service URLResearch checked: 2026-09-11

Direct answer

The discovery xaddr points to an ONVIF device service endpoint, not necessarily to the RTSP media URL. Authenticate to the service, request profiles, then ask for the stream URI for the selected profile.

Why this happens

ONVIF uses service calls for device and media capabilities, while RTSP controls the media session. Copying the device-service URL into an RTSP player therefore addresses the wrong protocol and resource.

Discovery only locates a device service; media profiles, credentials and routing still require their own checks.

A controlled test

Verify the scheme, host, service path and reachable interface in the xaddr before requesting device information and media profiles.

Change one variable at a time. Keep the camera model, firmware, endpoint and account recorded; then test network reachability, protocol response, media transport and decoding as separate layers.

Use a dedicated view-only account and a trusted local diagnostic tool. Redact credentials, private addresses and identifying data before sharing output.

Diagnostic sequence

CheckActionEvidence of progress
DiscoveryRecord the returned xaddr from the intended device.The host maps to the camera being configured.
ServiceCall the device service with authorized credentials.Device information and capabilities return.
ProfileList media profiles and select one by purpose.The profile contains the expected encoder configuration.
URIRequest the stream URI for that profile.A separate rtsp:// or rtsps:// endpoint is returned.

Evidence to keep

Keep the device-service endpoint, selected profile token and redacted stream URI together. That shows the complete path from discovery to playback.

Boundary and safety note

Do not assume every address a camera advertises is reachable from a different VLAN or VPN; validate routing and returned hostnames.

For remote viewing, use a managed VPN instead of exposing RTSP or camera administration ports directly to the public internet.

SmartRTSP

SmartRTSP is a camera-focused RTSP and ONVIF viewer for Apple devices, Windows and Android. It fits direct viewing, discovery and multi-camera checks; keep a dedicated NVR or VMS when continuous recording, evidence export or centralized enterprise controls are required.

Frequently asked questions

Is the ONVIF xaddr an RTSP URL?

No. It is normally an HTTP or HTTPS service endpoint used to call ONVIF operations.

How do I get the RTSP URL through ONVIF?

Select a media profile and request its stream URI through the media service.

Why does the returned host fail remotely?

The camera may advertise a LAN-only address or hostname that is not routed through the remote network.

Primary references

Related SmartRTSP guide

Open related guide

Understand the address returned by discovery and why the media stream URL may be different.