TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why is Control Center on Monterey listening on ports?

165 点作者 tachyons超过 3 年前

18 条评论

rock_artist超过 3 年前
I am surprised to see so much comments without mentioning the reason of that (written in the thread)...<p>* It&#x27;s the new AirPlay server capability.<p>* It can be toggled off.<p>* Those ports are the defaults for AirPlay.<p>It might&#x27;ve been nice to allow simple way of customizing the ports though..
评论 #29305169 未加载
评论 #29305021 未加载
cromka超过 3 年前
This was discussed before: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29006861" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29006861</a><p>Their usage of port 5000 appears compliant with IANA port designation.
评论 #29305027 未加载
评论 #29304434 未加载
onion2k超过 3 年前
Every time I&#x27;ve written something that uses a port I&#x27;ve added a check to see if the code returns an EADDRINUSE error when the listener connects, and offered the user an alternative port if it does. I always assumed everyone did that but apparently not. Maybe I should make an NPM package...
评论 #29305553 未加载
评论 #29304767 未加载
sam0x17超过 3 年前
What web framework commonly uses 5000 in development mode? I&#x27;ve seen a lot of port 3000 and 8888 and 8080 and 10000, but never 5000.
评论 #29304050 未加载
评论 #29304209 未加载
评论 #29304046 未加载
评论 #29304153 未加载
评论 #29304123 未加载
lifthrasiir超过 3 年前
It is easy to bash those complaints, but it does show that the IANA port assignments [1] do not work well for ports 1024-- in practice. You generally don&#x27;t see this kind of complaints for system ports (0--1023) because you need root for them in UNIXish systems and thus has a much higher bar for collision. If we were enfocing the same rule for ports 1024-- we should have overflown the IANA registry by now [2], but it will be absurd and we instead collectively chose to ignore the registry. It hardly makes a difference whether you have actually registered your port to the registry or not; you should prepare for a possibility that your use of that port collides with other&#x27;s.<p>[1] <a href="https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;service-names-port-numbers&#x2F;service-names-port-numbers.xhtml" rel="nofollow">https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;service-names-port-numbers&#x2F;...</a><p>[2] The actual rate is something like 3--50 new and updated entries per year.
评论 #29304228 未加载
KarlKemp超过 3 年前
I&#x27;m not quite certain how common it really is. But, in any case, ports are expected to occasionally collide and therefore easy to configure.<p>If port collisions were such a hassle, we wouldn&#x27;t see anything like a <i>&quot;common&quot;</i> port (i. e. one that unrelated tools choose per default).<p>Good developers can have a pipe in every port, I guess...<p>(valid for development work only, especially those cases where you run some server and it opens the browser for you, port helpfully provided. There is value in ssh on 22 and http on 80, obvsly)
评论 #29303910 未加载
gnrlst超过 3 年前
~1 month ago, when setting up my new Macbook it took me forever to debug this. After hours of trying to mess with the builtin Apache service (thinking it was the culprit), I found a random blog post that said to disable the sharing feature occupying the port in the system preferences. It was devilishly hard to debug (and google for) at the time.<p>For those wondering why I needed port 5000 in my case, it was a standard Svelte app serving on localhost:5000 (via Sirv).
评论 #29304324 未加载
评论 #29304569 未加载
评论 #29304330 未加载
hk1337超过 3 年前
Web development frameworks should be easily overridden in case you have other conflicts or want to run multiple apps that default to the same port.
mavhc超过 3 年前
Are ports 1-4999 already in use? Can we reserve a private area like 192.168&#x2F;24 for IPs?<p>Also why is there no official TLD for DNS for local domains?
评论 #29304336 未加载
评论 #29304482 未加载
评论 #29303965 未加载
评论 #29304610 未加载
ypcx超过 3 年前
Similarly, the port 7000 is taken by `afs3-fileserver`. (I&#x27;ve found yesterday when playing with Redis Cluster, <a href="https:&#x2F;&#x2F;redis.io&#x2F;topics&#x2F;cluster-tutorial#creating-and-using-a-redis-cluster" rel="nofollow">https:&#x2F;&#x2F;redis.io&#x2F;topics&#x2F;cluster-tutorial#creating-and-using-...</a>)
punnerud超过 3 年前
Port 5000 is reserved for the service &quot;commplex-main&quot;: <a href="https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;service-names-port-numbers&#x2F;service-names-port-numbers.xhtml?&amp;page=88" rel="nofollow">https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;service-names-port-numbers&#x2F;...</a>
legulere超过 3 年前
Why does no web framework let the operating system give them a free port?
评论 #29305285 未加载
评论 #29305316 未加载
pjmlp超过 3 年前
Common where? I never used it in 25 years.
评论 #29305590 未加载
gbraad超过 3 年前
And so is 3000, 8000, 8080, 9000, etc.<p>... I don&#x27;t understand the issue as it is easy to change.
评论 #29308128 未加载
评论 #29305983 未加载
评论 #29305569 未加载
ppetty超过 3 年前
What common web development server runs on 5000 that wouldn’t automatically increment or throw an error indicating the port desired was occupied and a different one should be used? This seems like a trivial problem.
hulitu超过 3 年前
Because good security practices are so old time.
richardwhiuk超过 3 年前
There are plenty of ports reserved for HTTP without using 5000 - this is a bug in those frameworks using 5000.
IceWreck超过 3 年前
Is that forum post&#x27;s poster so lazy or incompetent that they cant change a port in their development config file ?
评论 #29303978 未加载
评论 #29304016 未加载