Miracast

For screen sharing via Windows or Android devices.

Overview

Miracast is a wireless display technology that works in two different modes. Mago supports both modes automatically. The mode used depends entirely on how the network is configured and how the user device is connected.

Miracast over WiFi Direct

This is the original Miracast technology. The connection forms a direct peer to peer link between the user device and Mago. It does not use the corporate WiFi network, does not rely on access points and does not require any VLAN or firewall configuration. Miracast over WiFi Direct is especially useful when the user device is connected on a different network or not connected to any WiFi network at all.

Miracast over Infrastructure

This mode is designed for enterprise environments. Discovery still uses WiFi, but the actual media traffic flows over the existing network infrastructure (WiFi or Ethernet) instead of a direct peer connection. This mode uses the corporate network, DNS resolution, VLAN routing and specific ports that must be opened on the firewall. Miracast over infrastructure is also known as MS MICE.

How Windows chooses the Miracast mode

Windows prefers Miracast over infrastructure when the sending device and the Mago Room device are on the same enterprise network and the required ports and multicast traffic are allowed. If these conditions are not met, Windows automatically falls back to Miracast over WiFi Direct. If both modes fail, Miracast will not connect.

In summary:

  • When the network supports MS MICE, Miracast over infrastructure will be used.

  • If the corporate network blocks the requirements for MS MICE, Miracast over WiFi Direct will be used automatically.

  • If WiFi Direct is disabled by policies or drivers, Miracast may not work in any mode.

Common requirements for all Miracast modes

1

Hardware and driver support

Miracast requires compatible hardware on both the sending device and the Mago device. This includes the following.

Graphics adapter

  • Windows Display Driver Model WDDM 1.3 or newer

To check WDDM:

  1. Press Windows key and R, type dxdiag and press Enter.

  2. Let the DirectX Diagnostic Tool finish.

  3. Select Save All Information.

  4. Open the saved text file and search for "WDDM".

WiFi adapter

  • Supports Miracast

  • Supports WiFi Direct

  • Uses a driver with NDIS 6.3 or newer

To check Miracast support:

  1. Open a Command Prompt window.

  2. Type netsh wlan show driver and press Enter.

  3. Check the Miracast line in the output.

2

WLAN AutoConfig service is running

Miracast requires the WLAN AutoConfig service (wlansvc) to be operating. If this service is disabled, WiFi Direct and MS MICE cannot start.

To enable the service:

  1. Press Windows key and R, type services.msc and press Enter.

  2. Find WLAN AutoConfig in the list.

  3. Right click, select Properties.

  4. Select Start and set the startup type to Automatic.

  5. Restart the computer.

3

Windows Firewall configuration

Windows Firewall must allow the Windows User Mode Driver Framework Host Process, which handles Miracast communication.

Allow the following:

C:\Windows\System32\WUDFHost.exe

Inbound and outbound traffic, TCP and UDP on all ports. If this process is blocked by a local or third party firewall, Miracast pairing or streaming may fail.

4

Group Policy permissions

Local or domain security policies must allow the creation and use of WiFi Direct. If blocked, Miracast will not work in either mode.

Check the following policy:

Computer Configuration > Windows Settings > Security Settings > Wireless Network (IEEE 802.11) Policies

Within Network Permissions:

  1. Allow everyone to create all user profiles

  2. Uncheck any setting that disables WiFi Direct groups

These policies must allow Windows to create a Microsoft WiFi Direct Virtual Adapter and a DIRECT-XXXXXX temporary network.

5

Drivers are up to date

Miracast is sensitive to driver compatibility. Keep the following updated:

  • Chipset drivers

  • Graphics adapter drivers

  • WiFi adapter drivers

Outdated drivers are one of the most common causes of unstable or failing Miracast sessions.

Miracast over Infrastructure (MS MICE) mode specific requirements

Miracast over infrastructure transports the media stream over the existing network, usually enterprise WiFi or Ethernet. Discovery still uses WiFi but the session is routed through the network.

1

Network reachability and VLAN routing

The user device and Mago Room must be reachable across the network.

Requirements:

  • Devices in the same enterprise network or routed VLAN

  • DNS records for Mago Room resolvable by the client

  • Firewall rules allowing bidirectional traffic

2

Required firewall and network ports

The following ports must be allowed in both directions between the client device and Mago:

  • UDP 5353 for mDNS discovery

  • TCP / UDP 7236 for RTSP Control Port

  • TCP 7250 for Miracast Sink

  • UDP 32768-65536 for Ephemeral ports for Return traffic

These ports enable session negotiation, discovery and continuous streaming.

Port
Type
Direction
Service

5353

UDP

Both

mDNS Discovery

7236

TCP / UDP

Both

RTSP Control Port

7250

TCP

Both

Miracast Sink

32768-65536

UDP

Both

Ephemeral ports for Return traffic

3

AP isolation disabled

Since Miracast over infrastructure uses the access point and VLANs, the AP must allow client to client communication. AP isolation or client isolation must be disabled on the SSID used by the sender. If enabled, Miracast over the network cannot function.

4

Multicast and broadcast traffic allowed

Miracast over infrastructure relies on mDNS discovery. Ensure that the network does not block the following:

  • UDP 5353

  • Multicast forwarding between VLANs if required

  • IGMP snooping causing excessive filtering

If multicast discovery is blocked, MS MICE cannot initialize.

Miracast over WiFi Direct mode specific requirements

Miracast over WiFi Direct creates a dedicated peer to peer wireless link between the user device and Mago. It is not routed through the corporate network.

1

2.4 GHz wireless availability

Discovery and pairing always use the 2.4 GHz band on channels 1, 6 or 11. Even if the sending device is connected to 5 GHz or not connected to any WiFi network, pairing begins on 2.4 GHz. Ensure that the 2.4 GHz radio is enabled in the environment. If 2.4 GHz is disabled, Miracast over WiFi Direct cannot initialize.

2

WiFi Direct Virtual Adapter must be created

During pairing, Windows must create the following:

  • Microsoft WiFi Direct Virtual Adapter

  • A temporary wireless network named DIRECT-XXXXXX

If these do not appear in Network Connections during an attempted Miracast session, Group Policies or drivers are blocking WiFi Direct.

Quick summary

  1. Confirm Miracast support • Windows 10 or later • Graphics adapter with WDDM 1.3 or newer • WiFi adapter supporting Miracast, WiFi Direct and NDIS 6.3 or newer Check using netsh wlan show driver.

  2. Enable required Windows services • WLAN AutoConfig service must be running • Group Policies must allow WiFi Direct and creation of DIRECT-XXXXXX networks

  3. Allow Miracast through Windows Firewall • Allow C:\Windows\System32\WUDFHost.exe for inbound and outbound TCP and UDP

  4. Update drivers • Update chipset, graphics and WiFi drivers to the latest versions

  5. If using Miracast over Infrastructure (MS MICE) • User device and Mago Room must be reachable across VLANs • Required ports open • AP isolation must be disabled • Multicast discovery (mDNS) must be allowed

  6. If using Miracast over WiFi Direct • 2.4 GHz WiFi must be enabled • AP isolation does not affect this mode • WiFi Direct Virtual Adapter and DIRECT-XXXXXX network must appear during pairing

Troubleshooting flowchart

1

Check Miracast hardware support

  1. Run netsh wlan show driver

  2. Check WDDM version with dxdiag

2

Check WLAN AutoConfig service

  1. Ensure wlansvc is running

3

Attempt Miracast connection

Do DIRECT-XXXXXX network and WiFi Direct Virtual Adapter appear?

If DIRECT network appears, but connection fails.

  • Check Windows Firewall for WUDFHost.exe

  • Update graphics and WiFi drivers

4

Determine connection mode

Is the device on same VLAN and required ports open?

Yes → Windows will use Miracast over Infrastructure

No → Windows will fall back to WiFi Direct

5

If using Miracast over Infrastructure

  1. Check firewall ports (TCP 7236, 7250, UDP 7236, 5353)

  2. Check that AP isolation is disabled

  3. Confirm mDNS multicast works across VLAN

6

If using WiFi Direct

  1. Ensure 2.4 GHz radio is enabled

  2. Check for RF congestion

  3. Test connection again

Miracast over WiFi Direct vs Miracast over Infrastructure

Aspect
Miracast over Infrastructure (MS MICE)
Miracast over WiFi Direct

Connection type

Routed through enterprise network

Peer to peer WiFi Direct link

Uses access point

Yes

No

VLANs required

Yes, if endpoints are on different subnets

No

DNS required

Yes

No

Firewall rules required

Yes, ports 7236, 7250, 5353

No

AP isolation impact

Must be disabled

No impact

2.4 GHz requirement

Not required once infrastructure mode is active

Required for negotiation (channels 1, 6, 11)

WiFi Direct Virtual Adapter creation

Still required for negotiation

Required

Discovery mechanism

mDNS (UDP 5353)

WiFi Direct beaconing

Stability in enterprise WiFi

Better for managed enterprise deployments

Good for isolated or guest scenarios

Best use cases

Corporate networks with proper routing and firewall setup

Guest devices, unmanaged networks, fallback mode

Mode priority

Preferred if infrastructure is correctly configured

Used when MS MICE is not possible

Last updated

Was this helpful?