Guys,

I have an app that is an interface to an electronic system and the connection between the system and my app is through ethernet using TCP/IP style and trough a network. My app would be responsible for assingning the IP address to the system that its currently talking to trough an RS232 link which a default connection when a system boots up.

Anyways, my question is that how can i make sure that an IP address is free ( or no conflict in the network). My plan is to use QHostInfo (I will keep a list of addresses that i have to check ) and keep trying to QHostInfo::lookUpHost(mylistofipaddress) and if no error returned then i would mark that address as taken. Is there any other easy way to do this?

baray98