Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no longer working with latest tvOS update #26

Open
mschwartz opened this issue May 15, 2019 · 4 comments
Open

no longer working with latest tvOS update #26

mschwartz opened this issue May 15, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@mschwartz
Copy link

Since the latest tvOS update (the one with the great new TV app), this library doesn't seem to work anymore.

My code that was working now constantly reports connection refused.

When I turn the appletv pair command, it is not found.

This is urgent if you want this library to be useful anymore.

Thanks for making it public though.

@mschwartz
Copy link
Author

After turning off then on home sharing on the apple tv:

./node_modules/.bin/appletv pair
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
? Which Apple TV would you like to pair with? THEATER (192.168.4.37:53185)
⠋ Connecting to THEATERconnect ECONNREFUSED 192.168.4.37:53185
⠸ Connecting to THEATER^C

@mschwartz
Copy link
Author

THEATER is the one that is updated

@mschwartz
Copy link
Author

I did a little digging with nmap.

THEATER shows up not every scan. When it did, I got port 53225

I ran nmap on the apple tv:

sudo nmap -v -PN 192.168.4.37
Warning: The -PN option is deprecated. Please use -Pn
Starting Nmap 7.70 ( https://nmap.org ) at 2019-05-15 10:59 PDT
Initiating ARP Ping Scan at 10:59
Scanning 192.168.4.37 [1 port]
Completed ARP Ping Scan at 10:59, 0.10s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 10:59
Completed Parallel DNS resolution of 1 host. at 10:59, 0.00s elapsed
Initiating SYN Stealth Scan at 10:59
Scanning appletv-theater (192.168.4.37) [1000 ports]
Discovered open port 5000/tcp on 192.168.4.37
Discovered open port 49156/tcp on 192.168.4.37
Discovered open port 49152/tcp on 192.168.4.37
Discovered open port 62078/tcp on 192.168.4.37
Discovered open port 49153/tcp on 192.168.4.37
Discovered open port 3689/tcp on 192.168.4.37
Discovered open port 7000/tcp on 192.168.4.37
Discovered open port 7100/tcp on 192.168.4.37
Completed SYN Stealth Scan at 10:59, 3.48s elapsed (1000 total ports)
Nmap scan report for appletv-theater (192.168.4.37)
Host is up (0.00039s latency).
Not shown: 842 filtered ports, 150 closed ports
PORT      STATE SERVICE
3689/tcp  open  rendezvous
5000/tcp  open  upnp
7000/tcp  open  afs3-fileserver
7100/tcp  open  font-service
49152/tcp open  unknown
49153/tcp open  unknown
49156/tcp open  unknown
62078/tcp open  iphone-sync
MAC Address: 40:CB:C0:C2:6A:12 (Unknown)

Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 3.75 seconds
           Raw packets sent: 1843 (81.076KB) | Rcvd: 159 (6.380KB)

So the port advertised isn't open. That's why the connection refused.

@mschwartz
Copy link
Author

This is still a bug/issue.

I have a node js application that scans all the ATVs in my house (I have like 4), and often only 2 show up. I have the application exit when all 4 are not found and it is restarted. Loops until all 4 are found. It can take a while, but all 4 are found.

@evandcoleman evandcoleman reopened this Feb 2, 2020
@evandcoleman evandcoleman added the bug Something isn't working label Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants