在同一台机器delphi中测试INDY TCP客户端和服务器

发布于 2024-12-11 05:41:08 字数 285 浏览 2 评论 0原文

我正在 delphi indy 10 中构建一个基本的客户端服务器应用程序;

我已经使用本地 IP 和特定端口设置了服务器应用程序,并且使用公共设置了客户端 当我测试应用程序时,客户端主机的 IP 出现以下错误 此处

我正在同一台计算机上测试客户端和服务器应用程序(就像我一样)没有其他选项),这会导致错误吗?

I am building a basic client server application in delphi indy 10 ;

I have set sever app with local ip and a specific port, and i set client with public
IP to client host when i am testing the application the following error i got
here

I am testing both client and server app in same machine (as i had no other option),will this cause error.

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

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

发布评论

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

评论(1

む无字情书 2024-12-18 05:41:08

您绝对可以在同一台计算机上运行 TCP 客户端和服务器。

一次只有一个应用程序可以侦听给定端口,但(实际上)任意数量的客户端都可以连接到该服务器,即使是从同一台计算机也是如此。

您是否从上一个问题中找到了路由器设置?

You can absolutely run a TCP client and server on the same computer.

Only one application can listen on a given port at a time, but (virtually) any number of clients can connect to that server, even from the same machine.

Did you find your router settings from the previous question?

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