16. Connection Issues
Troubleshooting connection problems between OBS and the relay, and container startup issues.
16.1 Cannot Connect from OBS
16.1.1 Symptoms
- OBS shows "Failed to connect to server"
- Connection timeout
16.1.2 Possible Causes
16.1.2.1 1. Port Not Accessible
Check: Verify port 1935 is exposed:
Look for 0.0.0.0:1935->1935/tcp
Solution: Ensure docker-compose.yml has correct port mapping:
16.1.2.2 2. IP Address Mismatch
Check: Verify you're using the correct IP address:
Solution:
- Use the relay PC's local network IP (e.g., 192.168.1.100)
- Don't use 127.0.0.1 or localhost from another machine
16.1.2.3 3. Firewall Blocking
Check: Test if port is reachable:
Solution:
- Open port 1935 in firewall
- Ubuntu: sudo ufw allow 1935/tcp
- Check if Docker networking is working
16.1.2.4 4. IP Range Restriction
Check: Look for "deny publish" in logs:
Solution: Adjust PUBLISH_IP_RANGE in env/relay.env:
# Allow entire local network
PUBLISH_IP_RANGE=192.168.0.0/16
# Allow specific IP
PUBLISH_IP_RANGE=192.168.1.50/32
16.1.3 Network Connectivity Test
If relay can't reach streaming services:
Check: Test if relay can reach the service:
docker compose exec relay ping -c 3 live-jfk.twitch.tv
docker compose exec relay ping -c 3 a.rtmp.youtube.com
Solution:
- Check firewall settings
- Verify outbound RTMP (port 1935) is allowed
- Try different Twitch ingest endpoint (change TWITCH_ENDPOINT)
16.2 Container Won't Start
16.2.1 Symptoms
docker compose upexits immediately- Container status shows "Exited (1)"
16.2.2 Possible Causes
16.2.2.1 1. Configuration Syntax Error
Check: Look for nginx errors:
Solution:
- Check for typos in manually edited config files
- Rebuild container: docker compose build --no-cache
16.2.2.2 2. Port Already in Use
Check: Error message about port binding:
Look for: bind: address already in use
Solution:
- Stop other processes using port 1935
- Find process: sudo lsof -i :1935
- Kill it: sudo kill <PID>
16.2.2.3 3. Missing Dependencies
Solution: Pull latest base image:
16.3 Advanced Diagnostics
16.3.1 Increase Log Verbosity
Edit build/conf/nginx/nginx.conf and change:
to:
Rebuild: docker compose build
16.3.2 Check nginx Configuration
# Test nginx config syntax
docker compose exec relay nginx -t
# View active configuration
docker compose exec relay cat /etc/nginx/nginx.conf
16.4 See Also
- Troubleshooting Overview - Main troubleshooting guide
- Service-Specific Issues - Twitch, YouTube, Archive
- Configuration - Setup and environment variables
- Security - IP-based access control