network icon indicating copy to clipboard operation
network copied to clipboard

Get Active Interface Issue

Open LiveAction-SunArc-Op opened this issue 6 years ago • 3 comments

I was on WiFi Network in my Windows 10, get active interface returns the Ethernet interface instead of WiFi interface.

LiveAction-SunArc-Op avatar Aug 10 '18 02:08 LiveAction-SunArc-Op

Care to submit a PR? :)

tomas avatar Aug 10 '18 02:08 tomas

D:\Development\test-network>network active_interface { name: 'Ethernet 2', mac_address: '00:05:9A:3C:7A:00', ip_address: '10.1.192.36', vendor: 'Cisco Systems', model: 'Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64', type: 'Wired', netmask: '255.255.255.0', gateway_ip: null }

LiveAction-SunArc-Op avatar Aug 10 '18 03:08 LiveAction-SunArc-Op

D:\Development\test-network>network interfaces_list [ { name: 'Ethernet 2', mac_address: '00:05:9A:3C:7A:00', ip_address: '10.1.192.36', vendor: 'Cisco Systems', model: 'Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64', type: 'Wired', netmask: '255.255.255.0', gateway_ip: null }, { name: 'VirtualBox Host-Only Network', mac_address: '0A:00:27:00:00:0A', ip_address: '192.168.56.1', vendor: 'Oracle Corporation', model: 'VirtualBox Host-Only Ethernet Adapter', type: 'Wired', netmask: '255.255.255.0', gateway_ip: null }, { name: 'VirtualBox Host-Only Network #2', mac_address: '0A:00:27:00:00:14', ip_address: '192.168.99.1', vendor: 'Oracle Corporation', model: 'VirtualBox Host-Only Ethernet Adapter', type: 'Wired', netmask: '255.255.255.0', gateway_ip: null }, { name: 'Wi-Fi', mac_address: 'A8:6B:AD:57:ED:DB', ip_address: '192.168.0.112', vendor: 'Qualcomm Communications Inc.', model: 'Qualcomm QCA61x4A 802.11ac Wireless Adapter', type: 'Wireless', netmask: '255.255.255.0', gateway_ip: '192.168.0.1' }, { name: 'Ethernet', mac_address: '98:40:BB:3F:CC:76', ip_address: undefined, vendor: 'Realtek', model: 'Realtek PCIe GBE Family Controller', type: 'Wired', netmask: null, gateway_ip: null }, { name: 'VMware Network Adapter VMnet1', mac_address: '00:50:56:C0:00:01', ip_address: '192.168.91.1', vendor: 'VMware, Inc.', model: 'VMware Virtual Ethernet Adapter for VMnet1', type: 'Wired', netmask: '255.255.255.0', gateway_ip: null }, { name: 'VMware Network Adapter VMnet8', mac_address: '00:50:56:C0:00:08', ip_address: '192.168.252.1', vendor: 'VMware, Inc.', model: 'VMware Virtual Ethernet Adapter for VMnet8', type: 'Wired', netmask: '255.255.255.0', gateway_ip: null }, { name: 'vEthernet (Default Switch)', mac_address: 'AE:15:9B:ED:5F:4F', ip_address: '172.29.31.145', vendor: 'Microsoft', model: 'Hyper-V Virtual Ethernet Adapter', type: 'Wired', netmask: '255.255.255.240', gateway_ip: null }, { name: 'vEthernet (nat)', mac_address: '00:15:5D:20:11:22', ip_address: '172.19.16.1', vendor: 'Microsoft', model: 'Hyper-V Virtual Ethernet Adapter', type: 'Wired', netmask: '255.255.240.0', gateway_ip: null } ]

LiveAction-SunArc-Op avatar Aug 10 '18 03:08 LiveAction-SunArc-Op