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, 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.
Enable the server and protect its connection details
- Open OBS, then Tools > WebSocket Server Settings.
- Check Enable WebSocket server and Enable Authentication. Use the generated server password rather than a password reused for an account.

Confirm the server, port and authentication on the OBS computer before you open a client. - Check Server Port. The standard 5.x default is 4455; the value actually configured in OBS is the one the client needs.
- Apply the settings. Open Show Connect Info only when that window cannot appear in a screen capture or broadcast.
- 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. Its current interface labels 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; 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
- Create or choose a clearly named rehearsal scene with no private windows.
- Connect the controller and check its connected status. In OBS, inspect Connected WebSocket Sessions in the server settings.
- Ask the client to list scenes or read recording status before assigning an output control.

Start with a read-only status check. Confirm that the recording state reported by the client matches the local OBS control. - Assign one button to select the rehearsal scene. Watch the actual OBS scene selection change.
- 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. 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 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 for the next control task.




