check names of network interfaces as primary mechanism, then rely on parsing output of netstat