ID EN
Socket

if_nameindex

Python 3.11

Return a list of network interface information (index int, name string) tuples. OSError if the system call fails.

Syntax

PYTHON
socket.if_nameindex()

See Also

OSError Availability