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
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:
Press Windows key and R, type
dxdiagand press Enter.Let the DirectX Diagnostic Tool finish.
Select Save All Information.
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:
Open a Command Prompt window.
Type
netsh wlan show driverand press Enter.Check the Miracast line in the output.
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:
Press Windows key and R, type
services.mscand press Enter.Find WLAN AutoConfig in the list.
Right click, select Properties.
Select Start and set the startup type to Automatic.
Restart the computer.
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.
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:
Allow everyone to create all user profiles
Uncheck any setting that disables WiFi Direct groups
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.
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.
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
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.
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.
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
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.Enable required Windows services • WLAN AutoConfig service must be running • Group Policies must allow WiFi Direct and creation of DIRECT-XXXXXX networks
Allow Miracast through Windows Firewall • Allow C:\Windows\System32\WUDFHost.exe for inbound and outbound TCP and UDP
Update drivers • Update chipset, graphics and WiFi drivers to the latest versions
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
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
Attempt Miracast connection
Do DIRECT-XXXXXX network and WiFi Direct Virtual Adapter appear?
No → Group Policy or drivers are blocking WiFi Direct. Fix GPO and update drivers.
Yes → WiFi Direct is functioning → Continue
If DIRECT network appears, but connection fails.
Check Windows Firewall for WUDFHost.exe
Update graphics and WiFi drivers
Miracast over WiFi Direct vs Miracast over Infrastructure
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?