PDA

View Full Version : QTcpServer



shreeja
28th December 2015, 08:45
The QTcpServer is returning a null IP Address(0.0.0.0) even though the desktop client is getting the 127.0.0.1 IP. Why?

anda_skoa
28th December 2015, 09:21
QTcpServer::hostAddress() returns whatever you specified at listen().

By default that is "any", or "0.0.0.0" in IPv4 terms.

Cheers,
_