Skip to main content

AWS Relay Setup

Description

In this setup, we utilize three interconnected pipelines: a Sender, a Relay, and a Receiver.

The purpose of this architecture is to enable streaming between two nodes located on private networks by tunneling their connection through a public Relay node hosted in the cloud (in this case, an AWS EC2 instance).

Requirements

  • 2 Local Nodes: One configured for sending and one for receiving (e.g., behind NAT/Firewall).
  • 1 Cloud Node: A public NanoPing node (Relay) that both local nodes can reach.
  • GStreamer: Installed on both the Sender and Receiver nodes.

Setup Guide

1. Import Pipelines

Import the respective JSON pipeline files onto your Sender, Receiver, and Relay nodes.

2. Configure Network Addresses

You must update the configuration to point to your specific AWS instance:

  • Open the Sender and Receiver pipelines.
  • Locate the UDP Remote component.
  • Change the target IP address to the Public IP of your AWS Relay node.

3. Configure Components

Ensure the following components are set correctly for your environment:

  • Peer Writer: Verify the port and peer settings match your Relay's listening ports.
  • GStreamer Path: Ensure the pipeline points to the correct executable path for GStreamer on your local machines.

Once configured, start the Relay pipeline first, followed by the Receiver, and finally the Sender.