Live Streaming Setup: Connect Your IP Camera to YouTube & Twitch

This guide walks you through connecting your IP camera to webcam.io for 24/7 live streaming to YouTube Live, Twitch, or other platforms. Setup takes approximately 10–15 minutes.

Overview

For live streaming, webcam.io needs to access your camera’s video stream directly. This requires:

  1. Port forwarding — Opens a path from the internet to your camera
  2. Dynamic DNS — Gives your camera a permanent hostname
  3. RTSP URL — The address webcam.io uses to fetch your stream

flowchart LR
    A[Your Camera] -->|RTSP| B[Your Router]
    B -->|Port Forward| C[Internet]
    C -->|DynDNS| D[webcam.io]
    D -->|RTMP| E[YouTube/Twitch]
    E --> F[Viewers]

Prefer an Easier Setup?

If port forwarding seems complex, consider using Time-Lapse mode with FTP upload instead. It works without any router configuration and is sufficient for many use cases.


Prerequisites

Before you start, make sure you have:

Requirement Details
IP camera With RTSP or RTMP streaming support (recommended cameras)
Router access Admin login to configure port forwarding
Internet connection Minimum 2 Mbps upload (5 Mbps for 1080p)
webcam.io account Sign up free
YouTube or Twitch account With streaming enabled

Check Your Upload Speed

Your upload speed determines the maximum quality you can stream:

Bandwidth requirements for live streaming
Stream Quality Resolution Required Upload
Low 480p 1.5 Mbps
Standard 720p 3 Mbps
HD 1080p 5 Mbps
4K 2160p 15 Mbps

Test your speed at speedtest.net — look at the upload number, not download.


Step 1: Find Your Camera’s Local IP Address

First, identify your camera’s IP address on your local network.

Method A: Check Your Router’s Device List

  1. Log in to your router (usually 192.168.1.1 or 192.168.0.1)
  2. Find “Connected Devices”, “DHCP Clients”, or similar
  3. Look for your camera by name or MAC address

Method B: Use Camera Discovery Software

Method C: Check Camera’s Web Interface

If you know the camera’s IP, open it in a browser:

http://192.168.1.XXX
Reserve the IP Address (Important!)

After finding the IP, reserve it in your router settings. This prevents the camera from getting a different IP after a reboot, which would break your port forwarding rules.

Look for “DHCP Reservation”, “Static Lease”, or “Address Reservation” in your router.

Example local IP address: 192.168.1.100


Step 2: Set Up Port Forwarding

Port forwarding creates a path from the internet to your camera. Without it, webcam.io cannot reach your camera.

Understanding Port Forwarding

Internet Request → Your Public IP:554 → Router → Camera at 192.168.1.100:554

The router forwards incoming traffic on port 554 (RTSP) to your camera’s local IP.

Generic Instructions

  1. Log in to your router’s admin interface
  2. Navigate to Port Forwarding (sometimes under “Advanced”, “NAT”, or “Applications & Gaming”)
  3. Create a new rule:
Field Value
Name/Description Camera RTSP
External Port 554
Internal IP 192.168.1.100 (your camera’s IP)
Internal Port 554
Protocol TCP (or TCP/UDP)
  1. Save and apply changes
  2. Reboot your router if required

Router-Specific Guides

Find your router brand for step-by-step screenshots:

Multiple Cameras?

If you have multiple cameras, each needs a unique external port:

Port forwarding for multiple cameras
Camera Local IP Internal Port External Port
Camera 1 192.168.1.100 554 554
Camera 2 192.168.1.101 554 10554
Camera 3 192.168.1.102 554 11554

Then use the external port in your RTSP URL (see Step 4).

Security Note

Port forwarding exposes your camera to the internet. Always:

  • Use a strong password on your camera
  • Keep camera firmware updated
  • Consider using a non-standard port (e.g., 8554 instead of 554)
  • Check Static-IPs to restrict access to webcam.io servers only

Step 3: Set Up Dynamic DNS

Dynamic DNS (DDNS) gives your router a permanent hostname, even when your public IP changes.

Why Do You Need DDNS?

Most home internet connections have a dynamic IP — it changes periodically. DDNS automatically updates a hostname to point to your current IP.

Without DDNS: rtsp://86.42.103.55:554/... ← breaks when IP changes
With DDNS: rtsp://mywebcam.dyndns.org:554/... ← always works

Skip if You Have a Static IP

If your ISP provides a static IP address (common for business connections), you can skip DDNS and use your IP directly.

Setup Process

  1. Create account at your chosen DDNS provider

  2. Create hostname (e.g., mywebcam.ddns.net)

  3. Configure your router to update the DDNS:

    • Find “Dynamic DNS” or “DDNS” in router settings
    • Select your provider
    • Enter credentials and hostname
  4. Test by pinging your hostname:

    ping mywebcam.ddns.net

Alternative: Configure DDNS on Camera

Some cameras (Hikvision, Axis) have built-in DDNS clients. This works even if your router doesn’t support DDNS.

Hikvision: Configuration → Network → Advanced → DDNS
Axis: Settings → System → Network → TCP/IP → Hostname


Step 4: Find Your Camera’s RTSP URL

The RTSP URL is the address webcam.io uses to access your camera’s video stream.

RTSP URL Format

rtsp://USERNAME:PASSWORD@HOSTNAME:PORT/PATH
Component Example Description
USERNAME admin Camera login username
PASSWORD mypassword123 Camera login password
HOSTNAME mywebcam.ddns.net Your DDNS hostname (or public IP)
PORT 554 External port from Step 2
PATH /Streaming/Channels/101 Camera-specific stream path

Common RTSP Paths by Brand

# Main stream (high quality)
rtsp://user:pass@hostname:554/Streaming/Channels/101

# Sub stream (lower bandwidth)
rtsp://user:pass@hostname:554/Streaming/Channels/102
# Main stream
rtsp://user:pass@hostname:554/axis-media/media.amp

# With parameters
rtsp://user:pass@hostname:554/axis-media/media.amp?resolution=1920x1080
# Main stream
rtsp://user:pass@hostname:554/cam/realmonitor?channel=1&subtype=0

# Sub stream
rtsp://user:pass@hostname:554/cam/realmonitor?channel=1&subtype=1
# Main stream
rtsp://user:pass@hostname:554/h264Preview_01_main

# Sub stream
rtsp://user:pass@hostname:554/h264Preview_01_sub
# Main stream
rtsp://user:pass@hostname:554/cam/realmonitor?channel=1&subtype=0
# Main stream
rtsp://user:pass@hostname:554/media/video1
# Try these common paths
rtsp://user:pass@hostname:554/onvif1
rtsp://user:pass@hostname:554/stream1
rtsp://user:pass@hostname:554/live/ch00_0

Find Your Camera’s Path

If your camera isn’t listed above:

  1. Check your camera manual — Look for “RTSP” or “streaming URL”
  2. Camera web interface — Often shown in Network or Streaming settings
  3. ispyconnect Database — 10,000+ camera models
  4. Security.World RTSP — Organized by manufacturer

Example Complete URLs

# Hikvision with DDNS
rtsp://admin:MyPassword123@mywebcam.ddns.net:554/Streaming/Channels/101

# Axis with static IP
rtsp://root:password@203.0.113.50:554/axis-media/media.amp

# Multiple cameras (Camera 2 on port 10554)
rtsp://admin:pass@mywebcam.ddns.net:10554/Streaming/Channels/101

Step 5: Test Your Stream

Before configuring webcam.io, verify your stream works from outside your network.

Test with VLC Player

  1. Download VLC Media Player (free)
  2. Go to Media → Open Network Stream
  3. Enter your full RTSP URL
  4. Click Play
Test from OUTSIDE Your Network

Your local network will bypass port forwarding. To test properly:

  • Use your phone’s mobile data (WiFi off)
  • Ask a friend to test from their network
  • Use an online RTSP tester

If it works locally but not externally, your port forwarding isn’t configured correctly.

Troubleshooting Checklist

If the stream doesn’t work:

Issue Solution
“Connection refused” Port forwarding not working or wrong port
“Authentication failed” Wrong username/password
“Stream not found” Wrong RTSP path for your camera
Works locally, not externally Port forwarding issue or ISP blocking port 554
Intermittent connection DDNS not updating, or camera IP changed

Test Port Forwarding

Use an online port checker:

  1. Go to yougetsignal.com/tools/open-ports/
  2. Enter port 554 (or your custom port)
  3. Click “Check”

If the port shows as closed, review your port forwarding configuration.


Step 6: Configure webcam.io

Now connect your camera to webcam.io:

  1. Log in to webcam.io Dashboard
  2. Click Add Webcam → Select Live Streaming
  3. Enter your camera details:
Field Value
Name My Outdoor Camera
Input type default H.264/H.265
Stream URL rtsp://user:pass@mywebcam.ddns.net:554/Streaming/Channels/101
Transcode off for H.264 (or resolution/fps for H.265/others - requires LIVE+ plan)
  1. Click Save and wait for the stream to connect

Configure Output Destination

Continue with one of these guides:


Camera-Specific Setup Guides

Hikvision Setup

  1. Access camera web interface at http://CAMERA-IP
  2. Configuration → Network → Advanced → Port
    • RTSP Port: 554 (default)
    • Enable RTSP Authentication: Yes
  3. Configuration → Video/Audio → Video
    • Video Encoding: H.264 (recommended) or H.265
    • Resolution: 1920×1080 or lower
    • Bitrate: 2048–4096 kbps
    • Frame Rate: 25 fps

RTSP URL:

rtsp://admin:password@hostname:554/Streaming/Channels/101

Axis Setup

  1. Access camera at http://CAMERA-IP
  2. Settings → Stream → Stream profiles
    • Create profile for streaming
    • Resolution: 1080p
    • Compression: 30 (lower = higher quality)
    • Zipstream: Off (for compatibility)
  3. Settings → System → Plain config → Network → RTSP
    • Enable RTSP server

RTSP URL:

rtsp://user:pass@hostname:554/axis-media/media.amp

Dahua Setup

  1. Access camera at http://CAMERA-IP
  2. Setup → Camera → Encode
    • Main Stream: H.264, 1080p, 4096kbps
  3. Setup → Network → Port
    • RTSP Port: 554

RTSP URL:

rtsp://admin:password@hostname:554/cam/realmonitor?channel=1&subtype=0

Troubleshooting

Common Issues and Solutions

  1. Check codec: webcam.io requires H.264. H.265 needs LIVE+ plan.
  2. Authentication: Some special characters in passwords cause issues. Try URL-encoding them or simplify the password.
  3. Firewall: Your camera may restrict connections to certain IPs. See Static-IPs for webcam.io server IPs.

Some ISPs block common ports. Solutions:

  1. Use a different port: Configure camera to use 8554 or 10554
  2. Contact ISP: Business accounts often have fewer restrictions
  3. Use Time-Lapse mode: FTP upload doesn’t require port forwarding

If your ISP uses Carrier-Grade NAT (common with mobile/4G providers), port forwarding won’t work. Options:

  1. Request public IP from ISP (may cost extra)
  2. Use VPN with port forwarding (PureVPN, AirVPN)
  3. Use Time-Lapse mode with FTP upload
  1. Check bandwidth: Run speed test during streaming
  2. Lower bitrate: Reduce to 2000kbps in camera settings
  3. Enable backup stream: In webcam.io settings; keeps YouTube stream from ending
  4. Check DDNS: Ensure it’s updating properly

Next Steps

Your camera is now connected! Continue with:

  1. YouTube Live Setup — Configure your YouTube destination
  2. Twitch Setup — Or stream to Twitch instead
  3. Streaming FAQ — Common questions and advanced options
Need Help?

If you’re stuck, contact us with:

  • Your camera make/model
  • Screenshot of your port forwarding rules
  • The RTSP URL you’re trying (remove password)

We’re happy to help troubleshoot!

Back to top