Which ports are used by AirServer and how can I override them?

Last Updated: Oct 28, 2015 07:13PM UTC

Default Port Description Behavior HKEY_LOCAL_MACHINE\Software\App Dynamic\AirServer
TCP 5000 AirPlay RAOP Will use a dynamic port if unavailable AirPlayAudioTCPPort
TCP 5001 AirPlay RAOP events Will use a dynamic port if unavailable AirPlayAudioEventTCPPort
TCP 7000 AirPlay media Will use a dynamic port if unavailable AirPlayVideoTCPPort
TCP 7100 AirPlay legacy mirroring Fixed port - cannot be changed
Only needed to support iOS 6 and older devices
N/A
TCP 49152 AirPlay mirroring Will use a dynamic port if unavailable AirPlayDynamicMirroringTCPPort
UDP 6010-6012 AirPlay audio Will use AirPlayAudioUDPPort,
AirPlayAudioUDPPort+1 and
AirPlayAudioUDPPort+2
AirPlayAudioUDPPort
UDP 51563 Miracast Will use a dynamic port if unavailable
(configured on local firewall only)
N/A
 

Most of these ports can be overridden using Windows registry. However, port used by Apple Bonjour Service (UDP 5353) cannot be changed.

 

On Windows, use AirServerConsole.exe in an elevated command prompt to configure the ports:

AirServerConsole.exe set AirPlayVideoTCPPort 7000
AirServerConsole.exe set AirPlayAudioTCPPort 5000
AirServerConsole.exe set AirPlayAudioUDPPort 6010
AirServerConsole.exe set AirPlayDynamicMirroringTCPPort 0
AirServerConsole.exe set AirPlayAudioEventTCPPort 5001
 

To get a complete list of configurable properties, run:

  AirServerConsole.exe /?
 

These ports can also be set using installer properties:

  • AIRPLAY_VIDEO_TCP_PORT
  • AIRPLAY_AUDIO_TCP_PORT
  • AIRPLAY_AUDIO_UDP_PORT
  • AIRPLAY_DYNAMIC_MIRRORING_TCP_PORT
  • AIRPLAY_AUDIO_EVENT_TCP_PORT