On Oct 24, 2012, at 8:40 AM, Thiago Macieira <thiago.macie...@intel.com> wrote:
> On quarta-feira, 24 de outubro de 2012 05.38.03, Joseph W Joshua wrote: >> Hello all, >> >> I am writing an application for our company, and at one point I need to get >> the hostname of a computer on the network given the IP address. If I use >> QHostInfo::lookupHost() connected to a lookup slot, and provided with the >> IP address, it returns the same IP address. > > in the QHostInfo that you receive in your slot, the hostName() returns the IP > address in string form? > > For every hostname you've tried? Try 8.8.8.8 for example. > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Software Architect - Intel Open Source Technology Center > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest The computers in question are in a locked network that does not have Internet access. I will try 8.8.8.8 and get back to you. But all computers in the local networks, 192.168.0.xxx and 10.20.21.xxx respond with the IP address and not the hostname. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest