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

other/20220117/241830554/ #31

Open
utterances-bot opened this issue Apr 16, 2023 · 2 comments
Open

other/20220117/241830554/ #31

utterances-bot opened this issue Apr 16, 2023 · 2 comments

Comments

@utterances-bot
Copy link

Mac 系統 Port 號被佔用的解決方式(Mac Port xxx is already in use) | 是 Ray 不是 Array

開發系統時可能會出現一種狀況,也就是 Port 被佔用,因此會出現類似這種訊息「Port 5000 is already in use」,所以就寫一篇來紀錄一下如何解決 Port 被佔用的問題。

https://israynotarray.com/other/20220117/241830554/

Copy link

其實我超愛用AirPlay共享,然後之前就為此所苦,雖然後來也知道怎麼解決了,

只是我不懂到底為什麼要把port設在5000,變得常常要開開關關,超麻煩...

我比較想知道能不能改AirPlay的port

@hsiangfeng
Copy link
Owner

hsiangfeng commented Apr 17, 2023

其實我超愛用AirPlay共享,然後之前就為此所苦,雖然後來也知道怎麼解決了,

只是我不懂到底為什麼要把port設在5000,變得常常要開開關關,超麻煩...

我比較想知道能不能改AirPlay的port

目前來講這沒有辦法解決的,官方也沒有提出任何解決方式(至少以我目前翻 Apple 論壇來講是這樣)

至於原因的話,稍微查了一下主要是與 UPnP 有關,所以才設置在 5000,只是這個並沒有很明確規範說用哪個 Port,因此 Mac 從 2004 左右就一直都是使用這個 Port

也因為這個關係滿多開發工具都會盡可能將 Port 閃過 5000,例如 Express 3000、Vue Cli 8080 與 Vite 5173 等,如果自己的開發工具可以設置 Port 的話,都會建議自己設置閃過 5000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants