Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Qt-5.3.1] QAbstractSocket::peerAddress returns a NULL QHostAddress for localhost?
kshots last edited by
Any idea why this behaves this way? This is on a TCP socket in a connected state to a peer at localhost on version 5.3.1. If this is the intended behavior...
Perhaps update the documentation to show as much
What's a workaround if I intend to use this address to send to other peers?
Can you show a simple code sample that allows to reproduce this ?