# Run Remote Streamer.bot Action (v0.2.3)

**URL:** <https://extensions.streamer.bot/t/run-remote-streamer-bot-action-v0-2-3/458>\
**Category:** Unapproved/Deprecated\
**Created:** [November 6, 2023, 7:38am UTC](https://extensions.streamer.bot/t/run-remote-streamer-bot-action-v0-2-3/458 "2023-11-06T07:38:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondhi](https://extensions.streamer.bot/user_avatar/extensions.streamer.bot/rondhi/32/24_2.png) [@rondhi](https://extensions.streamer.bot/u/rondhi)\
**Post date:** [November 6, 2023, 7:38am UTC](https://extensions.streamer.bot/t/run-remote-streamer-bot-action-v0-2-3/458/1 "2023-11-06T07:38:52Z")

</div>

## Description

This action is now deprecated as there is a similar functionality now built into Streamer.bot v0.2.4+ [Details here!](https://docs.streamer.bot/changelogs#streamerbot-website)

For dual PC streaming setups, use this action to remotely trigger an action from one Streamer.bot to another within the local network via its Websocket or HTTP server (same PC only)

## Import Code

[remoteTrigger-0.3.0.sb](https://extensions.streamer.bot/uploads/short-url/kqWmQiXviDObitdCXftIBSWKhvu.sb) (10.6 KB)

## Installation

1. Download the .sb import code
2. In Streamer.bot, open the Import Dialog
3. Open the folder where you saved the import code and drag and drop the .sb file into the `Import String` box

 ![image](https://extensions.streamer.bot/uploads/default/original/2X/8/8ea76b24f3175eb23eef43382dc5efb238e2da81.png)

1. Click `Import`

## Configuration

### PC receiving the trigger

Choose either to run actions from the Websocket Server or the HTTP server (likely

#### Websocket Server

Go to the tab `Servers/clients > Websocket Server` (it’s the first tab in `Server/Clients`, not the last one) and click `Start Server`. If you prefer, you can enable `Auto Start` so that it automatically starts when Streamer.bot opens

 ![image](https://extensions.streamer.bot/uploads/default/original/2X/3/36d3b153ed1222ba7fa51005b3ddc7692df27ed0.png)

#### HTTP Server

Going the HTTP Server route only works on instances on the same PC due to only being able to set IP Address to 127.0.0.1, unless you know how to change it.

I don’t know how, so I can’t point you in the right direction, either.

Go to the tab `Servers/Clients > HTTP Server` and click `Start Server`. If you prefer, you can enable `Auto Start` so that it automatically starts when Streamer.bot opens

 ![image](https://extensions.streamer.bot/uploads/default/original/2X/f/f47f68318eb612d1f0407b3c7398565d05dda799.png)

Some notes:

- You’ll need to find the local IPv4 address of your streaming PC by using something like `ipconfig` in powershell or checking `Control Panel > Network and Sharing Center`
- In the following screenshots, `192.168.1.69` will be used as an example IP

### PC sending the trigger

#### Setting up Websocket Client

- Go to the tab `Servers/Clients > Websocket Clients`
- Right-click the white space under `Host` and click `Add`
- Choose a name that helps identify that this client is connecting to your Streaming PC’s Streamer.bot Websocket Server
- Endpoint is whatever your Streaming PC’s IP address and port is in this format (remember to keep that final slash):

In this example:

```plaintext
ws://192.168.1.69:8080/

```

- If you prefer, you can enable `Auto Connect on Startup` and `Reconnect on Disconnect`

 ![image](https://extensions.streamer.bot/uploads/default/original/2X/1/1095c018b3deca188f7f10bbc07eabb8af7e23c4.png)

## Sending the Remote Trigger

### Websocket

- Required variables:
  - `%targetActionName%`
  - `%sbWebsocketClientId%`

- The Websocket Client IDs are zero-indexed, meaning that the first entry in the list has an ID of `0` (see above screenshot)
- The imported action is set to `0` by default

 ![image](https://extensions.streamer.bot/uploads/default/original/2X/f/f8c672770409e5f809a22b156be6da73c9c53ae2.png)

### HTTP

- Required variables:
  - `%targetActionName%`
  - `%port%`

 ![image](https://extensions.streamer.bot/uploads/default/original/2X/a/aa7f3df9e0f4e99bd7cf294a6366d8e41e2b26a3.png)

## Notes

- `%targetActionName%` can be an Action Name or an Action ID
- Any other arguments set will be passed on to the target action
- Arguments can be manually added with a Set Argument subaction
- Methods such as the HTML Decks or Stream Deck, or Test Trigger will have ways to add arguments in

---

<div class="post-metadata">

**Author:** ![rondhi](https://extensions.streamer.bot/user_avatar/extensions.streamer.bot/rondhi/32/24_2.png) [@rondhi](https://extensions.streamer.bot/u/rondhi)\
**Post date:** [March 23, 2024, 8:02pm UTC](https://extensions.streamer.bot/t/run-remote-streamer-bot-action-v0-2-3/458/2 "2024-03-23T20:02:49Z")

</div>

Updated with more robust code. Should still work with earlier versions of Streamer.bot.

---

<div class="post-metadata">

**Author:** ![rondhi](https://extensions.streamer.bot/user_avatar/extensions.streamer.bot/rondhi/32/24_2.png) [@rondhi](https://extensions.streamer.bot/u/rondhi)\
**Post date:** [July 28, 2024, 11:32pm UTC](https://extensions.streamer.bot/t/run-remote-streamer-bot-action-v0-2-3/458/3 "2024-07-28T23:32:36Z")

</div>

Fixed a bug. Realized the HTTP method is pointless for remote triggering since it’ll only work on the same PC.

This will become irrelevant once Streamer.bot v0.2.4 is released. [Details here.](https://docs.streamer.bot/changelogs#streamerbot-website)
