0

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

Touko
  • 11,359
  • 16
  • 75
  • 105

1 Answers1

0

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();
    }
}
synthesizerpatel
  • 27,321
  • 5
  • 74
  • 91