Hi !
I've not made a lot of searches, but I think you can't use directly IP addresses...
You can use the static functions in QHostInfo, for example lookupHost(), that will give you the hostname associated to your IP.
For your 2nd question, yes
You can use a map (hostname, ip) to achieve that : check QHash / QMap classes





Reply With Quote
Bookmarks