I\'m trying to determine the network segment my Macbook is in, because I then want to scan this segment for active hosts (basic IP scanner) by using the CFHost class. Therefore
You will have to use the System Configuration API. See System Configuration Programming Guidelines and System Configuration Framework Reference