Menu

1 / 2

Finding a TV on Wi-Fi from an iPhone is harder than it looks: how my free TV remote app does it

DEV Community: ios·EltaCrew·3 days ago
#jWTDw67g
#devtoios#devto#dev#android#samsung
Long article (376 words) — no AI summary yet.
Reading 0:00
15s threshold

I make a free TV remote app. The Android version has been out for a while, and on November 18 the iPhone and iPad version went live on the App Store. It controls Samsung, LG, Sony BRAVIA, VIZIO, Android TV and Google TV, and you don't have to pick a brand first.

The hardest part wasn't the buttons. It was finding the TV.

One TV, three ways to say "I'm here"

TVs announce themselves on the local network in different ways:

SSDP (UDP multicast on 239.255.255.250:1900). The app sends M-SEARCH and also listens for NOTIFY . Samsung answers as a remotecontrolreceiver , LG webOS as webos-second-screen .

mDNS / Bonjour . Android TV and Google TV publish _androidtvremote2._tcp , Chromecast-capable TVs _googlecast._tcp , and VIZIO _viziocast._tcp .

Nothing at all . Some TVs stay quiet until you knock.

So the app runs all three at once and merges the results by IP.

iOS adds its own wall

On iOS, sending multicast needs a special entitlement, and some routers drop multicast entirely.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.