# Ports and services

Please note that all required network ports for Mago must be **allowed at the VLAN infrastructure level**, not just on individual client devices. This ensures proper communication between Mago and user devices across the network. Make sure your network switches, firewalls, and access points are configured to permit the necessary traffic within and across VLANs.

## Generic ports

<table><thead><tr><th width="99.5625">Port</th><th width="122.33203125">Type</th><th width="142.59765625">Direction</th><th>Service</th></tr></thead><tbody><tr><td>80</td><td>TCP</td><td>Outbound</td><td>HTTP</td></tr><tr><td>443</td><td>TCP</td><td>Outbound</td><td>HTTPS</td></tr><tr><td>53</td><td>TCP/UDP</td><td>Outbound</td><td>DNS (internal or external)</td></tr><tr><td>123</td><td>UDP</td><td>Outbound</td><td>NTP (internal or external)</td></tr></tbody></table>

## Screen sharing protocols

### Mago Link

See [Mago Link](/requirements/presentation/wireless-screen-sharing/mago-link.md)

### Miracast

See [Miracast](/requirements/presentation/wireless-screen-sharing/miracast.md)

### AirPlay

See [AirPlay](/requirements/presentation/wireless-screen-sharing/airplay.md)

### Google Cast

See [Google Cast](/requirements/presentation/wireless-screen-sharing/google-cast.md)

## Local discovery service of Mago devices (optional)

To use the local discovery service, enable the following ports on the Mago device and network.

Discover more about the discovery service for Mago mobile apps here: [Proximity connection](/mago-mobile-apps/proximity-connection.md)

<table><thead><tr><th width="99.2890625">Port</th><th width="102.0859375">Type</th><th width="164.1953125">Direction</th><th>Service</th></tr></thead><tbody><tr><td>8034</td><td>TCP</td><td>Both</td><td>Local Discovery Service</td></tr><tr><td>8035</td><td>UDP</td><td>Both</td><td>Local Discovery Service</td></tr></tbody></table>


---

# 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/network/ports-and-services.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.
