https://old.reddit.com/r/webdev/comments/qg8yt9/apple_took_over_port_5000_in_the_latest_macos/ jump to content my subreddits edit subscriptions * popular * -all * -random * -users | * AskReddit * -pics * -funny * -movies * -todayilearned * -explainlikeimfive * -gaming * -news * -videos * -science * -tifu * -mildlyinteresting * -aww * -IAmA * -worldnews * -TwoXChromosomes * -askscience * -nottheonion * -LifeProTips * -Showerthoughts * -Jokes * -books * -OldSchoolCool * -dataisbeautiful * -Music * -gifs * -Futurology * -space * -DIY * -Art * -nosleep * -sports * -photoshopbattles * -food * -GetMotivated * -history * -Documentaries * -InternetIsBeautiful * -gadgets * -EarthPorn * -WritingPrompts * -UpliftingNews * -philosophy * -creepy * -announcements * -listentothis * -blog more >> reddit.com webdev * comments Want to join? Log in or sign up in seconds.| * English [ ][] [ ]limit my search to r/webdev use the following search parameters to narrow your results: subreddit:subreddit find submissions in "subreddit" author:username find submissions by "username" site:example.com find submissions from "example.com" url:text search for "text" in url selftext:text search for "text" in self post contents self:yes (or self:no) include (or exclude) self posts nsfw:yes (or nsfw:no) include (or exclude) results marked as NSFW e.g. subreddit:aww site:imgur.com dog see the search faq for details. advanced search: by author, subreddit... this post was submitted on 26 Oct 2021 250 points (91% upvoted) shortlink: [https://redd.it/qg8y] [ ][ ] [ ]remember mereset password login Submit a new link Submit a new text post Get an ad-free experience with special benefits, and directly support Reddit. get reddit premium webdev joinleave986,448 readers 1,331 users here now * Beginner question? Try the FAQ first! or the WebDev Resources Post then post in the Beginner Questions thread * Help fill out the wiki Posting Guidelines 1. No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed. 2. Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content. 3. Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials. 4. We do not allow any commercial promotion or solicitation. Violations can result in a ban. 5. Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed. 6. If you are asking for assistance on a problem, you are required to provide + Context of the problem + Research you have completed prior to requesting assistance + Problem you are attempting to solve with high specificity 7. General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines. Questions in violation of this rule will be removed or locked. Related Subreddits * /r/web_design * /r/WebDevBuddies * /r/devops * /r/javascript * /r/webhosting (web hosting questions) * /r/WebdevTutorials * /r/forhire (job offers or requests) * /r/freelance (discussion related to freelancing) * /r/programmerhumor - (post your memes here instead) * /r/cryptodevs Discords * /r/webdev (official) a community for 12 years MODERATORS * message the mods * Moderator list hidden. Learn More discussions in r/webdev <> X 251 * 60 comments Apple took over port 5000 in the latest macOS 57 * 9 comments Google deliberately throttled ad load times to promote AMP 16 * 9 comments [WDDysQRZ] Adobe is bringing Photoshop and Illustrator to the web 25 * 18 comments [HneRhAOk] Next.js 12 27 * 50 comments Python/Django vs. Java/Spring vs. C#/.NET - which one to dive deeper in? 116 * 30 comments [VLYeTPGy] 0:19 How to keep textarea font-size a certain size, and not zoom in or out? 6 * 10 comments How are websites like this made? 13 * 24 comments Take a first job doing WordPress sites for low pay, or keep working on personal projects? * 13 comments Dev billed me for 5 hours to examine code? 4 * 9 comments Is code-splitting an effective way to increase load performance? Welcome to Reddit, the front page of the internet. Become a Redditor and join one of thousands of communities. x 249 250 251 Apple took over port 5000 in the latest macOSDiscussion (self.webdev) submitted 7 hours ago by Arrojavascript macOS latest version Monterey was released yesterday. Apple decided to utilize port 5000 with something called AirPlay Receiver. You can disable in System Preferences --> Sharing --> AirPlay Receiver. I find it pretty annoying of Apple, to think that port was up for grabs. * 60 comments * share * save * hide * report all 60 comments sorted by: best topnewcontroversialoldrandomq&alive (beta) [ ] Want to add to the discussion? Post a comment! Create an account [-]AutoModerator[M] [score hidden] 7 hours ago stickied comment (2 children) The Web Devign Talk Series begins on 22 NOVEMBER Ingenious ways to work smarter, faster and healthier r/webdev and r/web_design are joining to hold a series of live-streamed conference talks and we even want you to be a speaker! The topic is on developer productivity -- if you're keen to either hear or speak about it, see the stickied post for more details and the Call for Speakers to submit a proposal. Reddit is officially sponsoring the talks and speakers will be paid. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. * permalink * embed * save * report * give award * reply load more comments (2 replies) [-]davidsterry 103 points104 points105 points 6 hours ago (17 children) mfw I don't change the port after doing the tutorial * permalink * embed * save * report * give award * reply [-]Arrojavascript[S] 40 points41 points42 points 6 hours ago (15 children) I use other ports on my personal projects, but my company uses 5000 for one of our main node.js repos. * permalink * embed * save * parent * report * give award * reply [-]csmrh 20 points21 points22 points 5 hours ago (14 children) Are you using a mac server running Monterey in production? Sounds like it would only affect your dev environment, in which case you can just change the port in development, or run the app in docker and bind a different port to 5000. * permalink * embed * save * parent * report * give award * reply [-]Arrojavascript[S] 50 points51 points52 points 5 hours ago (13 children) Yeah it's just a local dev environment... not production of course. I can change my .env file where it's set. I'm just reporting the mild annoyance of the 5 minutes it took to diagnose the problem. Just about every single "hello world" tutorial does use port 5000 (I guess sometimes 3000 too). So, however minor it may be, it's going to come up for a lot of people. * permalink * embed * save * parent * report * give award * reply [-]kumonmehtitis 34 points35 points36 points 5 hours ago (11 children) Most of the tutorials I have gone through use 3000 or 8000. They have to pick some port to take over. * permalink * embed * save * parent * report * give award * reply [-]_xiphiaz 25 points26 points27 points 3 hours ago (5 children) Sure but they probably should have picked a 5 digit number that isn't commonly used (or easy to type) * permalink * embed * save * parent * report * give award * reply [-]apparently_DMA 36 points37 points38 points 3 hours ago (1 child) this. taking 5000 is fucking rude. * permalink * embed * save * parent * report * give award * reply [-]campbellm [score hidden] 1 minute ago (0 children) "courageous", surely. * permalink * embed * save * parent * report * give award * reply [-]crazedizzled -1 points0 points1 point 40 minutes ago (2 children) Or a <1024 port. * permalink * embed * save * parent * report * give award * reply [-]danudey [score hidden] 10 minutes ago (1 child) Yeah, nothing screams 'well thought-out tutorial' like making you run your dev environment as root. * permalink * embed * save * parent * report * give award * reply [-]crazedizzled [score hidden] 5 minutes ago (0 children) Was talking about Apple. It sounds like a system level service so seems to make sense it'd be a <1024 port. * permalink * embed * save * parent * report * give award * reply [-]jzaprint -2 points-1 points0 points 2 hours ago (4 children) Ya this. I always see 3000 for front end and 8000 for backend. Never seen 5000 in tutorials lol * permalink * embed * save * parent * report * give award * reply [-]footpole 27 points28 points29 points 2 hours ago (1 child) It's for middleware I suppose. * permalink * embed * save * parent * report * give award * reply [-]StuartGibson -2 points-1 points0 points 1 hour ago (0 children) This deserves a lot more upvotes. * permalink * embed * save * parent * report * give award * reply [-]Reavolt 3 points4 points5 points 2 hours ago (0 children) .net core web uses port 5000 * permalink * embed * save * parent * report * give award * reply [-]dr_hewitt 2 points3 points4 points 1 hour ago (0 children) Ive seen 5000 used a lot, probably more than 8000. * permalink * embed * save * parent * report * give award * reply [-]csmrh 1 point2 points3 points 5 hours ago (0 children) Definitely good to know and I'm glad I do now * permalink * embed * save * parent * report * give award * reply [-]_hugerobots_ -4 points-3 points-2 points 2 hours ago (0 children) mfw when I get to f&r default port 1337 on all existing and future projects and it's approved by my team of 1. * permalink * embed * save * parent * report * give award * reply [-]Grabow 13 points14 points15 points 3 hours ago (0 children) Out of all the ports they chose that one?! lol * permalink * embed * save * report * give award * reply [-]versaceblues 59 points60 points61 points 3 hours ago (2 children) I'm guessing some dev set it as the default port since its so common, and forgot to switch it. But yah its kinda whack, at least take something like 5219. Sure someone might be using 5219, but the likelihood of that is exponentially lower than a port like 5000. * permalink * embed * save * report * give award * reply [-]ShikariBhaiya 3 points4 points5 points 1 hour ago (1 child) The exponential likelihood seems reasonable explanation provided choosing of ports is a poisson process and distribution of ports is Uniform (which is true). * permalink * embed * save * parent * report * give award * reply [-]Gh0st1y 1 point2 points3 points 35 minutes ago (0 children) How does one determine if some RV is from a poisson process? * permalink * embed * save * parent * report * give award * reply [-]UntestedMethod 7 points8 points9 points 1 hour ago* (0 children) I find it pretty annoying of Apple, to think that port was up for grabs. [DEL:To be fair, it kinda is up for grabs since port 5000 has no official assignment from IANA.:DEL] Also seems to make some sense to choose 5000 since that's the port Windows uses for UPnP. Edit: Just did a bit more digging, and IANA actually assigns port 5000 to "commplex-main" - so really any other service that's using that port is violating the official assignment. Based on a quick search of what commplex-main is, it's related to UPnP for network device discoverability. I'm not sure exactly what the AirPlay Receiver service does, but I get the gist that it probably does fit somewhere into the scope of UPnP-related features. At the very least, it's probably a far more accurate usage of port 5000 than some random dev servers. * permalink * embed * save * report * give award * reply [-]christoroth 20 points21 points22 points 6 hours ago (1 child) I don't know much about it but it's listed as used for Universal Plug and Play defices to receive connections. Can't decide if AirPlay Receiver sounds like it fits with that or not? What has stopped working for you that was using 5000? * permalink * embed * save * report * give award * reply [-]bean_number_47 34 points35 points36 points 6 hours ago (0 children) It's the default Flask port * permalink * embed * save * parent * report * give award * reply [-]hk1337 19 points20 points21 points 4 hours ago (0 children) You can disable in System Preferences --> Sharing --> AirPlay Receiver. If you don't want to use the feature, sure, but that was a one of the featured items in Monterey. Probably would be easier to just change your local dev port. * permalink * embed * save * report * give award * reply [-]livedog 90 points91 points92 points 6 hours ago (6 children) Most ports are up for grabs. Whatever you are using doesn't have a monopoly on it. * permalink * embed * save * report * give award * reply [-]SheeEttin 45 points46 points47 points 5 hours ago* (2 children) Sort of. Ports 1024-49151 are registered, but I don't think anyone strictly adheres to the registrations. Apple should register and use their own port, or bind to a port in the dynamic range (49152-65535). TCP and UDP 5000 are already registered to commplex-main, whatever that is. https://www.iana.org/assignments/service-names-port-numbers/ service-names-port-numbers.xhtml * permalink * embed * save * parent * report * give award * reply [-]del_rio 11 points12 points13 points 3 hours ago (0 children) AirPlay is an OS-level communication protocol so they could likely register it as a "System" port. If Apple wanted to be cheeky and self-referential they could register port 981 (acceleration of gravity * 100)! * permalink * embed * save * parent * report * give award * reply [-]Vakieh 1 point2 points3 points 1 hour ago (0 children) Eh, the registration system for user ports (i.e. not system ports) is dumb and should be scrapped (pretty much has been defacto scrapped because nobody looks at it any more, case in point the OP). Dynamic ports are where your software is dynamic and can/should accept a random port and can/should be perfectly ok with the port that it wants not being available. Everything else is an issue for system configuration - e.g. I'm not using 90% of the things on the list, so I really don't care what IANA has to say about it, my software's going to use the port it wants to use (and provide a config file for you to change for yourself in the rare event that there is a clash). * permalink * embed * save * parent * report * give award * reply [-]Reelix 25 points26 points27 points 2 hours ago (1 child) In the next update they'll use Ports 21, 22, 80, and 443 for enhanced device compatibility transfers! * permalink * embed * save * parent * report * give award * reply [+]ershanxi23 comment score below threshold-24 points-23 points-22 points 1 hour ago (0 children) cute, but everyone knows you cant use these ports. Complain when apple DO use these ports OK? * permalink * embed * save * parent * report * give award * reply [-]Prawny 11 points12 points13 points 6 hours ago (0 children) I'm guessing this new feature doesn't allow you to change the port it uses though. That then becomes the problem. * permalink * embed * save * parent * report * give award * reply [-]E_Blue_2048 11 points12 points13 points 4 hours ago (1 child) Well at least is not the 443 * permalink * embed * save * report * give award * reply [-]Reelix -3 points-2 points-1 points 2 hours ago (0 children) Yet * permalink * embed * save * parent * report * give award * reply [-]Ninjaboy42099 38 points39 points40 points 5 hours ago (4 children) It's also notable that the "serve" npm package uses 5000 by default, so if you're using serve for dev, that may be the cause of some issues * permalink * embed * save * report * give award * reply [-]Bionictoe 18 points19 points20 points 2 hours ago (3 children) Doesn't 'serve' npm package use port 3000? * permalink * embed * save * parent * report * give award * reply [-]LucyBowels 13 points14 points15 points 2 hours ago (0 children) Lol yes. Not sure why that has so many upvotes * permalink * embed * save * parent * report * give award * reply [-]Ninjaboy42099 10 points11 points12 points 2 hours ago (1 child) Quote from 'serve -h': "By default, serve will listen on 0.0.0.0:5000 and serve the current working directory on that address." * permalink * embed * save * parent * report * give award * reply [-]Bionictoe 9 points10 points11 points 2 hours ago (0 children) OK but their docs reference 3000, and is far more common than 5000 * permalink * embed * save * parent * report * give award * reply [-]davidsterry 5 points6 points7 points 6 hours ago (1 child) Surprised they're using a non-privileged port. * permalink * embed * save * report * give award * reply [-]danudey [score hidden] 8 minutes ago (0 children) Running a privileged port requires running as a privileged user; better not to if you can avoid it. * permalink * embed * save * parent * report * give award * reply [-]integrateus 6 points7 points8 points 2 hours ago (3 children) Apple will take anything and claim its theirs. Your battery life, theirs. Your right to repair, theirs. Port 5000, clearly theirs. * permalink * embed * save * report * give award * reply [-]The-Observer95 1 point2 points3 points 1 hour ago (0 children) Everything is theirs. When you buy their product, they say it's ours. xD * permalink * embed * save * parent * report * give award * reply [-]crazedizzled 0 points1 point2 points 37 minutes ago (1 child) I feel like battery life is one of the very few things you can't really rip on apple over. Their devices usually have the best battery life in the business. * permalink * embed * save * parent * report * give award * reply [-]integrateus [score hidden] 9 minutes ago (0 children) https://www.forbes.com/sites/ewanspence/2017/12/20/ apple-iphone-kill-switch-ios-degrade-cripple-performance-battery/?sh= 539d1c5716a8 bla bla bla "to save your battery * permalink * embed * save * parent * report * give award * reply [-]Jakek1 5 points6 points7 points 2 hours ago (0 children) Oh god, the HORROR. * permalink * embed * save * report * give award * reply [-]MGallus -1 points0 points1 point 3 hours ago (0 children) Greedy Bastards. * permalink * embed * save * report * give award * reply [-]bobcottle -1 points0 points1 point 6 hours ago (2 children) Wait, what? Monterey? Didn't Big Sur just come out? I don't really stay on top of updates like I should, but I feel like I just installed Big Sur. * permalink * embed * save * report * give award * reply [-]sumpuran 13 points14 points15 points 6 hours ago (0 children) MacOS Big Sur was released last November. MacOS Monterey was released yesterday. That said, if you use your computer for work, it'd be wise to hold off updating for a few months, after the first few bug fixes have been released. * permalink * embed * save * parent * report * give award * reply [-]Arrojavascript[S] 4 points5 points6 points 6 hours ago (0 children) They have a yearly cadence. But to be fair, this one isn't a massive visual overhaul like Big Sur was. * permalink * embed * save * parent * report * give award * reply [-]drones4thepoor 0 points1 point2 points 1 hour ago (0 children) Should have just used 80085 * permalink * embed * save * report * give award * reply [-]alexsharke 0 points1 point2 points 39 minutes ago (0 children) Bless you. * permalink * embed * save * report * give award * reply [-]m1ss1ontomars2k4 [score hidden] 26 minutes ago (0 children) I found this post online from 2006 about Mac OS X (yes, not macOS) using the same port: https://discussions.apple.com/thread/635229 So this doesn't seem new to me. But I don't use 5000 for much. 8080 4 life! * permalink * embed * save * report * give award * reply [-]dw444 -1 points0 points1 point 2 hours ago (1 child) This will cause a lot of grief with our internal tooling. * permalink * embed * save * report * give award * reply [-]mattindustries 1 point2 points3 points 2 hours ago (0 children) Just send an email with this link, https://developer.apple.com/forums /thread/682332 * permalink * embed * save * parent * report * give award * reply [-]DAGRluvr -1 points0 points1 point 1 hour ago (0 children) lmfao what a power grab by apple * permalink * embed * save * report * give award * reply * about * blog * about * advertising * careers * help * site rules * Reddit help center * reddiquette * mod guidelines * contact us * apps & tools * Reddit for iPhone * Reddit for Android * mobile website * <3 * reddit premium * reddit coins * redditgifts Use of this site constitutes acceptance of our User Agreement and Privacy Policy. (c) 2021 reddit inc. All rights reserved. REDDIT and the ALIEN Logo are registered trademarks of reddit inc. Advertise - technology [pixel] p Rendered by PID 56 on reddit-service-r2-loggedout-745fc966d-8dnwz at 2021-10-26 23:01:43.409578+00:00 running 85903bd country code: US.