There is already a function in utils that checks if something us on lan.