a11y.skipToMainContent
1

随机端口生成器

生成安全动态/私有范围内的随机端口(49152–65535). 适合本地开发服务器 Docker和测试.

Was this tool helpful?
Send output to:
Advertisement

How to use Random Port Generator

  1. 选择要生成多少端口 .
  2. 可选择排除已在使用的特定港口.
  3. 复制您的配置生成的端口 .

{姓名}是什么来着?

随机端口生成器为本地开发,测试或服务器配置选择未使用的端口号. 港口号码从0到65535不等,但众所周知的港口(0-1023)和已注册的港口(1024-49151)是为特定服务保留的。 该工具生成动态/私有范围内的端口( 49152–65535), 这些端口可以安全地用于自定义的应用程序而不会与系统服务相冲突.

Advertisement

FAQ

为什么不使用1024以下的港口?
0–1023口为系统服务所保留的著名口(HTTP:80,HTTPS:443,SSH:22). 它们需要root/admin权限.
安全范围是多少?
49152–65535号港口是IANA动态/私人港口范围. 他们没有注册到特定的服务机构,并且可以安全地申请定制.
我可以用这些在多克?
对 这些端口很适合多克港口绘图(如多克跑-p 5.1234:30.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement