Autodetect network interfaces