Community discussions

MikroTik App
 
mktbm
just joined
Topic Author
Posts: 9
Joined: Tue Apr 09, 2024 11:46 pm

Apple Airplay not working

Sun May 19, 2024 10:46 pm

I have a Mikrotik hAP ax2 connected to an Apple TV 2 over ethernet and a number of Apple devices connected wirelessly.

The hAP ax2 is running Router OS 7.14.3 with the default configuration.

I am able to control the Apple TV using the remote app on my iPhone but Airplay does not seem to be working. Any tips would be much appreciated.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26456
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Apple Airplay not working

Mon May 20, 2024 11:06 am

I have the exact same setup and no problems. Is everyone in the same IP subnet? Do you have any VLANs or other config you have not mentioned here?
 
marsbeetle
newbie
Posts: 41
Joined: Sun Feb 19, 2023 9:57 am

Re: Apple Airplay not working

Mon May 20, 2024 1:01 pm

As with normis I have a similar setup and I have never had any issues, it just works. Make sure your ATV is not configured to restrict connections.

What you should also know is that some applications or streams strictly prohibit Airplay & Screen Mirroring due to copyright(DRM) e.g. Netflix. Sometimes you can get around this by using other applications like VLC to stream or use mirroring but this is also not always possible.
 
User avatar
Nullcaller
Member Candidate
Member Candidate
Posts: 127
Joined: Mon Oct 16, 2023 3:09 pm

Re: Apple Airplay not working

Mon May 20, 2024 11:47 pm

Check whether the router config is really default, check the settings on devices themselves. If this doesn't help, you might wanna try increasing TTL on airplay packets. That's what made DLNA work on my network consistently. It's like TTL=1 or something like that. Also check multicast-related settings on wifi interfaces and bridge, that might help.
 
mktbm
just joined
Topic Author
Posts: 9
Joined: Tue Apr 09, 2024 11:46 pm

Re: Apple Airplay not working

Thu May 23, 2024 12:01 am

All devices are indeed in the same subnet without making use of any VLAN's. I have double-checked the Apple TV settings and connection using Airplay is allowed for any device without restrictions.

At another site I have a hAP ax3 connected to an Apple TV 4K and I can remember using Airplay without any issue. Currently I have a hAp ax2 connected to an older Apple TV2 so maybe the older Apple TV is not playing nice. The Apple TV is connected to ether2 and all other devices connected using Wifi.

I have reset the configuration and double checked Airplay connectivity but unfortunately this is not working with the default configuration either. I'm currently using the below configuration:
# 2024-05-22 22:49:34 by RouterOS 7.14.3
# software id = EX3R-84KS
#
# model = C52iG-5HaxD2HaxD
/interface bridge
add admin-mac=00:00:00:00:00:00 auto-mac=no name=bridge-LAN port-cost-mode=\
    short
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wifi datapath
add bridge=bridge-LAN disabled=no name=datapath-LAN
add disabled=no interface-list=WAN name=datapath-WAN
/interface wifi
set [ find default-name=wifi1 ] channel.band=5ghz-ac .width=20/40mhz-Ce \
    configuration.mode=ap .multicast-enhance=disabled .ssid=MT-wifi \
    datapath=datapath-LAN disabled=no mtu=1500 name="wifi1A-AP (5GHz)" \
    security.authentication-types=wpa3-psk .wps=disable
/interface wifi configuration
add country=Italy datapath=datapath-WAN disabled=no mode=station name=\
    hotel security.wps=disable ssid=hotel-wifi
/interface wifi
set [ find default-name=wifi2 ] configuration=hotel \
    configuration.mode=station disabled=no name="wifi2A-CLIENT (2 GHz)"
/ip pool
add name=dhcp-pool-0 ranges=10.20.0.10-10.20.0.254
/ip dhcp-server
add address-pool=dhcp-pool-0 interface=bridge-LAN lease-time=1d name=\
    dhcp-server-0
/ip smb users
set [ find default=yes ] disabled=yes
/interface bridge port
add bridge=bridge-LAN interface=ether2
add bridge=bridge-LAN interface=ether3
add bridge=bridge-LAN interface=ether4
add bridge=bridge-LAN interface=ether5
/ip firewall connection tracking
set udp-timeout=10s
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add interface=ether1 list=WAN
add interface=bridge-LAN list=LAN
add interface=*B list=LAN
/ip address
add address=10.20.0.1/24 interface=bridge-LAN network=10.20.0.0
/ip cloud
set update-time=no
/ip dhcp-client
add interface=ether1
add interface="wifi2A-CLIENT (2 GHz)"
/ip dhcp-server network
add address=10.20.0.0/24 dns-server=10.20.0.1 gateway=10.20.0.1
/ip dns
set allow-remote-requests=yes
/ip firewall filter
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
    "defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
    in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
    ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
    ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
    "defconf: accept established,related, untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat ipsec-policy=out,none out-interface-list=\
    WAN
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip smb shares
set [ find default=yes ] directory=/pub
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
    icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" port=\
    33434-33534 protocol=udp
add action=accept chain=input comment=\
    "defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
    udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
    protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
    ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
    ipsec-esp
add action=accept chain=input comment=\
    "defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
    "defconf: drop everything else not coming from LAN" in-interface-list=\
    !LAN
add action=accept chain=forward comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=\
    "defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
    hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
    icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=\
    500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
    ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
    ipsec-esp
add action=accept chain=forward comment=\
    "defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
    "defconf: drop everything else not coming from LAN" in-interface-list=\
    !LAN
/system clock
set time-zone-name=Europe/Rome
/system identity
set name=RemoteRouter
/system note
set show-at-login=no
/system ntp client
set enabled=yes
/system ntp client servers
add address=pool.ntp.org
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
 
tangent
Forum Guru
Forum Guru
Posts: 1462
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: Apple Airplay not working

Thu May 23, 2024 4:18 am

.multicast-enhance=enabled
?
 
mktbm
just joined
Topic Author
Posts: 9
Joined: Tue Apr 09, 2024 11:46 pm

Re: Apple Airplay not working

Thu May 23, 2024 11:38 pm

I can't believe I've overlooked the multicast-enhance parameter. I've set it to enabled but unfortunately this does not affect the issue I'm having with Airplay connectivity.
 
User avatar
Kentzo
Long time Member
Long time Member
Posts: 572
Joined: Mon Jan 27, 2014 3:35 pm
Location: California

Re: Apple Airplay not working

Thu May 30, 2024 11:00 pm

What is not working specifically? The devices do not appear on the Share list in iOS / macOS / tvOS or they do but the connection fails? If so then what is the error message?
 
mktbm
just joined
Topic Author
Posts: 9
Joined: Tue Apr 09, 2024 11:46 pm

Re: Apple Airplay not working

Sun Jun 02, 2024 11:57 pm

The Apple TV is not appearing in the share list when trying for example screen mirror
 
User avatar
Kentzo
Long time Member
Long time Member
Posts: 572
Joined: Mon Jan 27, 2014 3:35 pm
Location: California

Re: Apple Airplay not working

Mon Jun 03, 2024 5:04 am

If you run `dns-sd -Z _airplay._tcp` in the Terminal app on macOS, does it show any devices at all?
 
mktbm
just joined
Topic Author
Posts: 9
Joined: Tue Apr 09, 2024 11:46 pm

Re: Apple Airplay not working

Mon Jun 03, 2024 11:38 pm

I don’t have my Macbook with me at the moment. I will give it a try this weekend and let you know

Who is online

Users browsing this forum: Bing [Bot], ema81, hamid, maigonis and 7 guests