auto determine network interface