> ## Content Index
> Fetch the complete content index at: https://obsguides.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# OBS WebSocket: remote control and automation basics
- URL: https://obsguides.com/obs-websocket/
- Published: 2026-11-24T07:34:10.000Z
- Updated: 2026-11-24T07:34:10.000Z
- Description: Connect a controller to the built-in server, prove one reversible action and use actual OBS state before automating an output.
- Author: Ryan Parker
- Tags: Plugins

OBS WebSocket lets a controller app change scenes, mute sources and operate recording or streaming through OBS's built-in server. OBS Studio 28 and later include it, so a current installation does not need a separate WebSocket plugin. Enable the server under **Tools > WebSocket Server Settings**, keep authentication enabled and connect a compatible client with the server's address, port and password.

I would establish a local connection and one harmless scene change before adding automation. That proves the control path without putting a Start Streaming action on a button you have not checked.

## WebSocket carries commands, not the video feed

The controller sends a request to OBS; OBS changes its state and returns a response. Events can then tell the controller that a recording started or a scene changed. This is separate from transporting camera video, sending a stream to Twitch or making a phone into a webcam.

The [OBS remote control guide lists compatible controller applications](https://obsproject.com/kb/remote-control-guide?ref=obsguides.com), including OBS Blade, Touch Portal, Streamer.bot and Bitfocus Companion. Pick the client for the action you need: a phone panel, a physical button or a rule driven by another event. A recording shortcut on the same keyboard may only need [OBS's built-in hotkeys](https://obsproject.com/kb/keyboard-shortcuts?ref=obsguides.com).

## Enable the server and protect its connection details

1. Open OBS, then **Tools > WebSocket Server Settings**.
2. Check **Enable WebSocket server** and **Enable Authentication**. Use the generated server password rather than a password reused for an account.  
[![OBS WebSocket settings with authentication enabled and port 4455](https://storage.ghost.io/c/1f/f4/1ff41619-63d0-4562-aeda-c43118aa7da0/content/images/2026/11/obs-websocket-websocket.webp)](https://storage.ghost.io/c/1f/f4/1ff41619-63d0-4562-aeda-c43118aa7da0/content/images/2026/11/obs-websocket-websocket.webp?ref=obsguides.com)  
Confirm the server, port and authentication on the OBS computer before you open a client.
3. Check **Server Port**. The standard 5.x default is **4455**; the value actually configured in OBS is the one the client needs.
4. Apply the settings. Open **Show Connect Info** only when that window cannot appear in a screen capture or broadcast.
5. Enter the address, port and password in a client that supports the **obs-websocket 5.x** protocol.

The [project's own setup instructions confirm the bundled server, generated password and default port](https://github.com/obsproject/obs-websocket?ref=obsguides.com). Its [current interface labels](https://raw.githubusercontent.com/obsproject/obs-websocket/master/data/locale/en-US.ini?ref=obsguides.com) also identify connected sessions and warn about showing connection information while an output is active. A connection QR code contains access details too; keep it out of recordings and shared screenshots.

## Use the address of the OBS computer

| Controller location                                    | Address to use                                | Common mistake                                                |
| ------------------------------------------------------ | --------------------------------------------- | ------------------------------------------------------------- |
| Same computer as OBS                                   | 127.0.0.1 or localhost                        | Using another computer's address                              |
| Phone, tablet or another computer on the local network | The OBS computer's reachable local IP address | Using localhost, which points back to the controller itself   |
| Controller outside that local network                  | An intentionally secured remote connection    | Forwarding the OBS port to the public internet as a first fix |

A client that takes a complete URL typically expects a form such as `ws://127.0.0.1:4455` for a same-computer connection. Other clients have separate host and port fields. Do not put the password into an example URL or a publicly shared configuration.

Authentication and transport encryption are different. [Bitfocus's OBS connection documentation explains that selecting WSS requires a TLS-configured server or reverse proxy](https://bitfocus.io/connections/obs-studio?ref=obsguides.com); changing a client dropdown does not enable encryption in OBS. For a first setup, use your trusted local network and leave router port forwarding alone.

## Prove the connection with a reversible action

1. Create or choose a clearly named rehearsal scene with no private windows.
2. Connect the controller and check its connected status. In OBS, inspect **Connected WebSocket Sessions** in the server settings.
3. Ask the client to list scenes or read recording status before assigning an output control.  
[![OBS Controls with inactive Start Recording and Start Streaming](https://storage.ghost.io/c/1f/f4/1ff41619-63d0-4562-aeda-c43118aa7da0/content/images/2026/11/obs-virtual-camera-controls-native.webp)](https://storage.ghost.io/c/1f/f4/1ff41619-63d0-4562-aeda-c43118aa7da0/content/images/2026/11/obs-virtual-camera-controls-native.webp?ref=obsguides.com)  
Start with a read-only status check. Confirm that the recording state reported by the client matches the local OBS control.
4. Assign one button to select the rehearsal scene. Watch the actual OBS scene selection change.
5. If Studio Mode is active, distinguish a change to **Preview** from a change to **Program**. A prepared preview does not reach the output until transitioned.

The [5.x protocol separates requests, responses and state events](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md?ref=obsguides.com). A connected client can still send an invalid request, target a missing scene or change only Preview. Connection success alone does not prove that the intended output changed.

## Match automation to actual OBS state

Prefer explicit **Start** and **Stop** actions when separate controls make sense. A toggle reverses the current state, which can differ from what a remote button assumes after reconnecting. Use the client's status feedback for recording, streaming or source visibility where it provides that feedback.

Keep scene and source names stable once actions depend on them. If the client uses scene-item identifiers, retrieve the identifier from the intended scene rather than treating a source name as a universal item ID. A source reused in two scenes has a separate placement in each.

For scripts, use a maintained 5.x client library linked by the project and follow its authentication handshake. Old examples built around the 4.x protocol are not interchangeable with current requests. You do not need to install the old 4.9.1 compatibility server to connect a modern client.

## Find the failed hop before changing settings

| Symptom                              | Check first                                                                                                                                                                                                                                                                                   |
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| WebSocket Server Settings is missing | Inspect the startup log under **Help > Log Files** for the bundled module before adding an old plugin. A [reported missing-module case](https://obsproject.com/forum/threads/websocket-does-not-show-within-tools.182698/?ref=obsguides.com) is a different fault from an incorrect password. |
| Same-computer client cannot connect  | Server enabled, actual port, correct protocol and whether OBS is in Safe Mode                                                                                                                                                                                                                 |
| Local client works; phone fails      | OBS computer's address, same reachable network, guest-network isolation and a scoped firewall rule                                                                                                                                                                                            |
| Authentication rejected              | The server password in this OBS installation, not a stream key or platform login                                                                                                                                                                                                              |
| Connected, but button does nothing   | Request error, target scene/source and Preview versus Program                                                                                                                                                                                                                                 |
| Connection broke after an update     | Client/server protocol support and release notes before replacing plugins                                                                                                                                                                                                                     |

Safe Mode does not automatically start the WebSocket server; the server's own settings text states that restriction. Do not disable the firewall globally to investigate a phone connection. Allow only the intended OBS connection on the appropriate trusted network if a firewall rule is required.

Finish with a private recording: switch the rehearsal scene, mute and restore the intended source, then stop recording from the controller. Play back the file and confirm the controller's state matches OBS. When remote control is no longer needed, disconnect the client and disable the WebSocket server; use the [plugin and extension guides](https://obsguides.com/tag/plugins/) for the next control task.

[![OBS Audio Mixer showing separate desktop and microphone channels](https://storage.ghost.io/c/1f/f4/1ff41619-63d0-4562-aeda-c43118aa7da0/content/images/2026/11/obs-first-recording-mixer-native.webp)](https://storage.ghost.io/c/1f/f4/1ff41619-63d0-4562-aeda-c43118aa7da0/content/images/2026/11/obs-first-recording-mixer-native.webp?ref=obsguides.com)

Choose the specific mixer source before testing mute and restore. Play the recorded file to check the result.