Find out IP address with Qt Mobility (on a s60 phone)

263 views Asked by At

is there an easy way to find out phone's IP address with Qt Mobility? (In the context of s60 phone if that matters)

br, Touko

1

There are 1 answers

0
synthesizerpatel On

Something like this works in normal Qt.. Apologies if it's a red herring.

int main( int argc, char** argv )
{
    QHostInfo info = QHostInfo::fromName( QHostInfo::localHostName() );
    QList<QHostAddress> l= info.addresses();
    for(int i=0; i<l.count(); i++) {
        qDebug()<<l[i].toString();
    }
}