# Mago Link

## Overview

Mago Link uses the Mago Cast protocol to establish a secure WebRTC session between the sender device and the Mago on Windows / on Android device. WebRTC requires a small set of standard signaling and media ports. These ports must be accessible for reliable screen sharing.

Mago Link works via magolink.com or an on-premises hosted domain, and is supported on all modern browsers. It also powers mobile screen sharing through the Mago app for iOS and Android.

## Required ports

<table><thead><tr><th width="109.31640625">Port</th><th width="112.30078125">Type</th><th width="126.7578125">Direction</th><th>Service</th></tr></thead><tbody><tr><td>80</td><td>TCP</td><td>Outbound</td><td>HTTP service for initial access and redirection</td></tr><tr><td>443</td><td>TCP</td><td>Outbound</td><td>HTTPS service for signaling, authentication and coordination</td></tr><tr><td>3478</td><td>UDP</td><td>Both</td><td>STUN server used for NAT traversal and ICE candidate gathering</td></tr><tr><td>5349</td><td>TCP</td><td>Both</td><td>TURN fallback (media relay) for environments where UDP is restricted</td></tr><tr><td>10000</td><td>UDP</td><td>Both</td><td>Encrypted A/V media transport (SRTP via WebRTC)</td></tr></tbody></table>

## Technical notes

**80/TCP and 443/TCP**\
Used for accessing the Mago Link webpage, exchanging signaling messages and establishing secure WebRTC sessions. These ports must be reachable by the sender device.

**3478/UDP (STUN)**\
Allows WebRTC clients to discover their public IP and negotiate NAT traversal paths. This improves connectivity on restrictive enterprise networks.

**5349/TCP (TURN over TLS, fallback media transport)**\
Used only when UDP media is blocked by network firewalls or when NAT traversal is not possible.\
If UDP is unavailable, media traffic automatically switches to 5349/TCP.

**10000/UDP (media transport)**\
Primary port used for sending audio and video over WebRTC using encrypted SRTP.\
This port must be open in both directions between the sender and the Mago device to achieve optimal low-latency performance.

When UDP 10000 is blocked, Mago Link will fall back to TCP 5349, which works but with reduced performance.

## Key advantages

Mago Link does not require:

* mDNS
* Bonjour
* SSDP
* Multicast
* WiFi Direct
* AP isolation disabled

This makes it ideal for restrictive enterprise networks and guest WiFi environments.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.mago.io/requirements/presentation/wireless-screen-sharing/mago-link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
