This guide helps resolve common OBS Studio connection issues with the Telegram Bot.
This error typically occurs when the bot cannot establish a WebSocket connection to OBS Studio. Let's troubleshoot step by step.
Check OBS Studio Settings:
- Open OBS Studio
- Go to
Tools→WebSocket Server Settings - Ensure "Enable WebSocket server" is checked
- Verify Server Port (default: 4455, but you're using 4466)
- Set a Server Password (recommended for security)
- Click Apply → OK
Alternative Check:
- Look for a WebSocket icon in OBS status bar
- Check OBS logs for WebSocket server startup messages
Local Connection (Recommended):
# Test if OBS is listening on the port
telnet localhost 4466
# OR
nc -zv localhost 4466Remote Connection (Your Case):
# Test connection to remote OBS
telnet 103.167.123.195 4466
# OR
nc -zv 103.167.123.195 4466Windows Firewall:
- Open Windows Defender Firewall
- Go to "Allow an app or feature through Windows Firewall"
- Ensure "OBS Studio" is allowed for both Private and Public networks
- Or manually add port 4466:
# Allow port 4466 (run as Administrator)
netsh advfirewall firewall add rule name="OBS WebSocket" dir=in action=allow protocol=TCP localport=4466Linux Firewall:
# Ubuntu/Debian
sudo ufw allow 4466/tcp
# CentOS/RHEL
sudo firewall-cmd --permanent --add-port=4466/tcp
sudo firewall-cmd --reloadCheck obs-websocket version:
- OBS Studio 28+ includes built-in WebSocket support
- For older versions, you need the obs-websocket plugin
Configuration File Location:
- Windows:
%APPDATA%\obs-studio\global.ini - macOS:
~/Library/Application Support/obs-studio/global.ini - Linux:
~/.config/obs-studio/global.ini
Check for WebSocket settings in the config file:
[ObsWebSocket]
ServerEnabled=true
ServerPort=4466
ServerPassword=your_passwordPort Forwarding (if accessing remotely):
- Access your router's admin panel
- Find port forwarding settings
- Forward port 4466 to the OBS machine's local IP
- Ensure the OBS machine has a static local IP
Local vs Remote IP:
- Localhost:
localhostor127.0.0.1(bot and OBS on same machine) - LAN:
192.168.x.xor10.x.x.x(same network) - WAN:
103.167.123.195(internet, requires port forwarding)
Using WebSocket Test Tools:
- Open browser WebSocket test tool (like websocket.org/echo.html)
- Connect to:
ws://103.167.123.195:4466 - Check if connection establishes
Using curl:
# Test WebSocket handshake
curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==" -H "Sec-WebSocket-Version: 13" http://103.167.123.195:4466Verify Connection Settings:
- Go to your web interface (
http://localhost:3000) - Navigate to "OBS Connections" tab
- Check your connection settings:
- Host:
103.167.123.195 - Port:
4466 - Password: (if set in OBS)
- Host:
Test Connection in Web Interface:
- Click "Connect" next to your OBS connection
- Check for error messages
- Verify the connection status changes to "Connected"
If your bot and OBS are on the same machine:
-
Update OBS Settings:
- Host:
localhost - Port:
4455(default) - Password:
your_password
- Host:
-
Update Bot Configuration:
- In web interface, create new connection
- Host:
localhost - Port:
4455 - Password:
your_password
-
Test Connection:
# Test local connection nc -zv localhost 4455
If you need remote access to OBS:
-
Configure OBS for Remote Access:
- Enable WebSocket server on port 4466
- Set a strong password
- Configure firewall to allow port 4466
-
Set Up Port Forwarding:
- Forward port 4466 to OBS machine's local IP
- Use static IP for OBS machine
-
Configure Bot:
- Host:
103.167.123.195 - Port:
4466 - Password:
your_obs_password
- Host:
If port 4466 is blocked:
-
Use Default Port 4455:
- Change OBS WebSocket port to 4455
- Update bot configuration accordingly
-
Use Common Alternative Ports:
- Try ports: 8080, 8888, 9000
- Ensure firewall allows these ports
# Check if OBS process is running
ps aux | grep obs
# Check listening ports
netstat -tuln | grep 4466
# OR
ss -tuln | grep 4466
# Test connection timeout
timeout 5 bash -c "</dev/tcp/103.167.123.195/4466" && echo "Connected" || echo "Failed"# Ping the host
ping 103.167.123.195
# Trace route to identify network issues
traceroute 103.167.123.195
# Check port accessibility
nmap -p 4466 103.167.123.195✅ Enable WebSocket server
📡 Server Port: 4455 (default)
🔐 Server Password: MySecurePassword123
🌐 Bind to IP: 0.0.0.0 (all interfaces)
{
"name": "Main OBS",
"host": "localhost",
"port": 4455,
"password": "MySecurePassword123"
}- Cause: OBS not running or WebSocket not enabled
- Solution: Start OBS and enable WebSocket server
- Cause: Network issues, firewall blocking, or wrong IP/port
- Solution: Check network, firewall settings, and verify IP/port
- Cause: Wrong password or no password set
- Solution: Verify password matches in both OBS and bot config
- Cause: Port not open or service not listening
- Solution: Check OBS WebSocket settings and firewall
Before contacting support, run through this checklist:
- OBS Studio is running
- WebSocket server is enabled in OBS
- Correct port is configured (4455 or 4466)
- Password is set and matches in bot config
- Firewall allows the WebSocket port
- Network connectivity exists between bot and OBS
- Port forwarding is configured (for remote access)
- Bot configuration matches OBS settings
- No VPN or proxy interference
If issues persist:
- Check OBS Logs: Help → Log Files → View Current Log
- Check Bot Logs: Vercel dashboard → Functions → Logs
- Test with WebSocket Client: Use online WebSocket test tools
- Community Support: OBS forums, Discord, or GitHub issues
This troubleshooting guide should help resolve most OBS connection issues. Start with the local connection test first, then move to remote configuration if needed.