well the only way i found to do this... is connecting with QTcpSocket somwhere (ie. google at port 80). After that localAddress return my IP address...