My computer's IP on the local network is 192.168.0.100, I start my QTcpServer with
if (!tcpServer->listen(QHostAddress::LocalHost, 1234)) {
When I try to connect to it with netcat 192.168.0.100 1234, the connection is refused, but netcat localhost 1234 succeeds.
At the same time, if I listen with netcat -l -p 1234, I can connect on both 192.168.0.100 and localhost without any problem.
This has me scratching my head, why is it happening?