在同一台机器delphi中测试INDY TCP客户端和服务器
我正在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您绝对可以在同一台计算机上运行 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?