QTcpClient successfully connects, but not to my server. Where is it connecting?

后端 未结 3 1155
情歌与酒
情歌与酒 2021-02-10 15:09

I have successfully built a thin client/server using Qt\'s Tcp Sockets API. I know it works very well, because I have sent plenty of data over the wire and verified it. Howeve

3条回答
  •  青春惊慌失措
    2021-02-10 15:44

    You could be connecting to an instance of the server started earlier. Poke around with a process monitor to make sure you don't have any stray instances. Does your test setup automatically kick off and shutdown the dummy server? It could be that the test is succesfully starting the server, but failing to kill it.

    Also, from the 127.0.0.1, the dummy server is running on the same machine as the test code right?

提交回复
热议问题