Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QHostInfo::lookupHost() and QDnsLookup::lookup() not Supported on Android

QHostInfo::lookupHost() and QDnsLookup::lookup() not Supported on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 411 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dwardo
    wrote on last edited by dwardo
    #1

    I have a mobile app that connects to a device via Wi-Fi. I look up the device's IP address using QHostInfo, using the device's dns name 'mydevicename.local'.

    I get the resolved IP address on iOS, but not Android. On Android I get a "Host not found" error msg.

    I have also tried using QDnsLookup, where on Android I get "Not yet supported on Android" error message.

    So what to do? Are there alternatives available in Qt? Can I JNI into native Android Java to use services available there? Anyone have any examples?

    Much thanks for any pointers!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved