[Interest] Getting a hostname given the IP Address

Thiago Macieira thiago.macieira at intel.com
Wed Oct 24 07:40:42 CEST 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121023/c1e820af/attachment.sig>


More information about the Interest mailing list