DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python3 netifaces get current interface
>>> import netifaces >>> def_gw_device = netifaces.gateways()['default'][netifaces.AF_INET][1]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#netifaces
#current
#interface
ADD COMMENT
Topic
COMMENT
Name
1+2 =
Submit