[SailfishDevel] Device IP address
Matthias Fehring
buschmann at huessenbergnetz.de
Thu May 12 05:45:22 UTC 2016
Ifconfig seems to be only accessible by user root.
And I hoped for a more direct approach as QNetworkInterface::allAddresses :)
But I will then go with that.
Best greetings
Matthias Fehring
Am Donnerstag, 12. Mai 2016, 01:40:30 CEST schrieb E.S. Rosenberg:
> ifconfig?
> If QNetworkInterface is available you should have
> http://doc.qt.io/qt-5/qnetworkinterface.html#allAddresses
>
> (I think it probably is since it's most likely part of qnetwork which is
> listed as available).
>
> 2016-05-11 18:48 GMT+03:00 Matthias Fehring <buschmann at huessenbergnetz.de>:
> > Hello list,
> >
> > I am searching for a way to get the currently used IP address of the
> > device.
> > Is there a Qt-way or some Sailfish/Mer specific API?
> >
> > Best greetings
> > Matthias Fehring
> >
> > --
> > Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> > (Friedrich Schiller - Die Räuber)
> >
> > Und der Buschfunk spielt gerade "Shadow Of The Dead" von "Anti-Flag".
> >
> > www.buschmann23.de
> > GPG-Key: 0x614C3258
> > GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> >
> > _______________________________________________
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscribe at lists.sailfishos.org
--
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)
Und der Buschfunk spielt gerade mal nichts...
www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20160512/40d3cf2f/attachment.pgp>
More information about the Devel
mailing list