View Full Version : tcpServer
tithi
28th December 2015, 10:04
my tcpServer is returning null as its own serverAddress 0.0.0.0
ChrisW67
28th December 2015, 11:39
There is a reason for that: QTcpServer::serverAddress()
tithi
28th December 2015, 12:26
even though the desktop client is getting connected to 127.0.0.1
ChrisW67
28th December 2015, 21:03
If QTcpServer::serverAddress() is returning QHostAddress::Null then it is not listening and the client cannot be connecting to it.
If QTcpServer::serverAddress() is returning QHostAddress::Any, i.e. typically depicted as 0.0.0.0 (IPv4) or :: (IPv6), then it is listening on all interfaces. This will be because you listened without specifying the address of an interface to bind to.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.