scanning the local network for displaying the machine's ip and mac adresses