how can I get the IP adress of a DIGI connect ME component

I have an application in windows. In which, I’d like to scan all the adresse IP of DIGI components existe and then display it in my application. Any one knows how can I get the the adresse IP? I think the addp should be used. But any one have an example?