dynamically get current network interface