There is a QHostAddress
. How to extract a string representation of an IP address from it without dealing directly with the IPv4/IPv6 addresses?
QHostAddress::toString()
for the localhost gives ::ffff:127.0.0.1
which isn't usable as http://::ffff:127.0.0.1
.