Added function

Added a function which checks for the active network interface on the Mac