How to stream a Hikvision or HiWatch camera on a website

RTSP stream setup, network access, and rtsp.me player

Hikvision is one of the most widely used video surveillance manufacturers. Hikvision cameras and HiWatch devices built on the same platform are common, reliable, and usually RTSP-compatible, which makes them a strong choice for live website streaming.

To show video on your website, prepare the camera, provide RTSP access, and add the stream URL to rtsp.me. The service converts the stream into browser-compatible playback and provides ready HTML player code.

Validate RTSP URL

What you need

Menu names and option locations can differ by model and firmware. Save your current settings before making changes.

Step 1. Open the camera web interface

Connect your computer to the same local network as the camera. Enter the device local IP in a browser, for example http://192.168.1.100, then sign in as administrator.

If the address is unknown, check your router client list or use the manufacturer's device discovery utility.

Step 2. Configure RTSP authentication

  1. Open Configuration.
  2. Go to System -> Security.
  3. Open Authentication.
  4. Set RTSP Authentication to digest/basic.
  5. Set RTSP Digest Algorithm to MD5.
  6. Click Save.
RTSP authentication digest/basic and MD5 configuration in Hikvision interface
In System -> Security -> Authentication, choose digest/basic and MD5.

Step 3. Configure the main stream

  1. Go to Video/Audio -> Video.
  2. Set Stream Type to Main Stream (Normal).
  3. Choose the required Resolution.
  4. Set Frame Rate to 25 fps.
  5. Set Video Encoding to H.264.
  6. Click Save.

H.264 provides broad compatibility. H.265 and H.265+ may require additional transcoding.

The screenshot only shows field placement. Apply the recommended values above even if your current values differ.
Main Stream Normal, resolution, frame rate, and H.264 settings in Hikvision interface
Choose Main Stream (Normal), a suitable resolution, 25 fps, and H.264.

Step 4. Create a dedicated user

Do not use the camera admin account in your RTSP URL. In System -> User Management, create a separate user only for streaming.

Website visitors receive rtsp.me player code, not the direct camera address. Share RTSP credentials only with the service or trusted technical staff.

Step 5. Reserve the local IP

Find the camera address in network settings or on the router, for example 192.168.1.100. Verify the RTSP port: Hikvision and HiWatch usually use TCP 554.

Reserve the address via DHCP reservation on the router or configure a correct static address on the camera. Otherwise, IP changes after reboot may break forwarding rules.

Step 6. Configure port mapping

For direct access, your router must have a public IP. Forward an external TCP port, for example 10554, to the camera RTSP port:

Public IP:10554 → router → 192.168.1.100:554

Section names vary by router: Port Mapping, Port Forwarding, Virtual Server, or NAT. Use the full guide "How to configure port mapping".

Do not enable DMZ and do not expose the camera web interface. Open only the RTSP port. If your ISP uses CGNAT, standard port mapping will not work; you need a public IP or an alternative connection method.

Connection through software agent

If the site has no public IP address or opening an RTSP port on the router is not possible, install the rtsp.me software agent on a computer or mini PC in the same local network as the camera.

The agent receives the local Hikvision or HiWatch RTSP stream and sends it to rtsp.me over an outbound connection. In this case, port mapping, inbound internet access, and an exposed RTSP port are not required.

Hikvision / HiWatch → local network → software agent → internet → rtsp.me

Windows, Linux, and ARM are supported. Setup and configuration are described in "IP camera streaming agent without static IP".

Step 7. Build the RTSP URL

For channel 1 main stream on Hikvision and HiWatch, the common pattern is:

rtsp://<login>:<password>@<public-ip>:<external-port>/Streaming/Channels/101

Example for user viewer, public address 203.0.113.10, and external port 10554:

rtsp://viewer:StrongPassword@203.0.113.10:10554/Streaming/Channels/101

Replace the sample values with your own. Password characters such as @, :, /, #, and % must be URL-encoded correctly. Do not use the sample password in production.

Step 8. Add the camera on rtsp.me

  1. Open rtsp.me.
  2. Paste the prepared RTSP URL and click Test.
  3. After successful validation, add the camera in your account.
  4. Copy the player HTML code and place it on your website.
Hikvision / HiWatch → RTSP → rtsp.me → HTML5 player → your website

Read more: "How to embed a stream on your website".

Frequently asked questions

Which RTSP URL is used for Hikvision and HiWatch?
For channel 1 main stream, /Streaming/Channels/101 is commonly used; for sub stream, /Streaming/Channels/102. Path variants can depend on model and firmware.
Which video codec should I choose?
H.264 is recommended for online streaming. H.265 and H.265+ may require extra processing.
Can I use the camera admin account?
It is not recommended. Create a dedicated view-only user with a strong unique password.
Do I need a public IP?
Direct connection through port mapping usually requires a public IP. Under CGNAT, use an alternative connection method.

Connect Hikvision or HiWatch to rtsp.me

Validate your camera RTSP URL and get ready live player code for your website.

Validate RTSP URL