分配后如何删除或更改端口号

发布于 2024-08-05 04:29:00 字数 199 浏览 3 评论 0原文

  1. 我有 .exe 文件,它只运行 1 mb 的应用程序(不是安装程序)...如果我在 windows 2003 服务器上运行它,它通常会要求端口号...我分配了一个端口,现在它给出了一个 arror (;6overflow)...应用程序是用 vb6 构建的。
  2. 为了解决这个问题,我想尝试通过更改端口号...我如何删除/更改分配的端口号???
  1. I have .exe file which only run the application(not a setup) of 1 mb...if i run it on windowes 2003 server it normally ask for port number...i hvae allocated a port ,now it is giving an arreor (;6overflow)...application is buit in vb6.
  2. to solve this problem i want o give a try by changing port no...how can i remove/change port no once allocated???

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

简美 2024-08-12 04:29:00

您所能做的就是告诉应用程序在启动时使用不同的端口号,但是一旦操作系统为您分配了端口号,您就无法更改它的端口号。

唯一的解决方法是使用像 netcat 这样的东西,它可以将所有流量从一个端口转发到另一个端口。因此,当您的应用程序仍在端口 X 上运行时,netcat 可以将该端口连接到 Y,因此对于外部的任何人来说,您的应用程序看起来就像同时从 X 和 Y 提供服务。

All you can do is tell the app to use a different port number at startup but as soon as the OS has allocated a port for you, you can't change it's number.

The only workaround is using something like netcat which can forward all traffic from one port to another. So while your app is still running on port X, netcat can connect that port to Y, so for anyone outside, it will look as if your app is serving from both X and Y.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文