I need to list all the Ethernet ports on the system where my application is running?
I'm using the NetworkInterface class to get all the interfaces and then filtering out the Ethernet ports.
But, it seems that:
only returns ports that are configured & up.Code:
Is there any way I could get all the ports including ones that are down (like ifconfig -a for e.g. on UNIX)?