AirPlay弄乱本地主机 [英] AirPlay messes up localhost

查看:236
本文介绍了AirPlay弄乱本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从上次OSX更新(优胜美地)以来,我的本地主机服务器充满了来自airplay的错误消息(但我没有使用它)。每次都是一样的:

  [31 / Oct / 2014 05:40:42] code 400,message Bad request version 'RTSP / 1.0')
[31 / Oct / 2014 05:40:42]GET / info?txtAirPlay&txtRAOP RTSP / 1.0400 -

让服务器充满错误信息是很烦人的,所以如果有人有线索来解决这个问题,或者删除airplay,我会非常感激:)

解决方案

我想我找到了答案:在 nmap 输出。原来苹果正在使用5000端口:

pre $ $ $ $ $ $
$ b $ 3689 / tcp打开daap Apple iTunes DAAP 11.0 .1d1
5000 / tcp打开rtsp Apple AirTunes rtspd 160.10(Apple TV)
7000 / tcp打开http Apple AirPlay httpd
7100 / tcp打开http Apple AirPlay httpd
62078 / tcp打开tcpwrapped
5353 / udp打开mdns基于DNS的服务发现

正如你所想象的是默认的Flask端口,只是将您的运行端口更改为5000以外的任何其他端口,并且此问题应该消失。这个Flask扩展 https://github.com/miguelgrinberg/Flask-Runner 可以让你的生活比硬编码更容易运行命令中的端口。


Since the last OSX update (Yosemite), my localhost server is full of error messages from airplay (but I am not using it). Each times it's the same:

[31/Oct/2014 05:40:42] code 400, message Bad request version ('RTSP/1.0')
[31/Oct/2014 05:40:42] "GET /info?txtAirPlay&txtRAOP RTSP/1.0" 400 -

It's just annoying to have its server full of error messages so if anyone has a clue to fix that or to remove airplay, I would be very thankful :)

解决方案

I think I found the answer: On a cisco discovery forum they listed an nmap output that revealed the Yosemite discoveryd port ranges. Turns out the Apple is using port 5000:

PORT      STATE SERVICE    VERSION
3689/tcp  open  daap       Apple iTunes DAAP 11.0.1d1
5000/tcp  open  rtsp       Apple AirTunes rtspd 160.10 (Apple TV)
7000/tcp  open  http       Apple AirPlay httpd
7100/tcp  open  http       Apple AirPlay httpd
62078/tcp open  tcpwrapped
5353/udp  open  mdns       DNS-based service discovery

As you can imagine this is the default Flask port, just change your running port to anything other than 5000, and this problem should disappear. This Flask extension https://github.com/miguelgrinberg/Flask-Runner can make your life much easier than hard coding the port in the run command.

这篇关于AirPlay弄乱本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆