Skip to content

AirPlay: Use en0 WiFi IP address instead of 127.0.0.1 #86

Description

@DrHurt

What happened?

When AirPlaying, the airplay protocol is not smart enough to understand not to forward the localhost (127.0.0.1) to the TV.

My suggestion (and what I've done): obtain en0 (wifi) internal IP and use that instead.

eg http://192.168.8.166/media.m3u8

AVPlayer accepts that in the same way as 127.0.0.1

Both IPs are interchangeable, no further work needed.

Caveat:
On devices with Ethernet (or multiple network cards), en0 may not always be the actively used network device so IP maybe wrong.

Steps to reproduce

.

AetherEngine version or commit SHA

.

Host app

Custom / my own integration

Platform

tvOS

OS version

26.5

Device / chip

4K 2022

Playback path

Native AVPlayer

Source media (for playback bugs)

No response

Error codes / log lines


Anything else

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions