Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
python3 netifaces get current interface
TimVanGorp
Programming language:
Whatever
2021-04-21 23:03:23
0
Q:
python3 netifaces get current interface
Alice
Code:
Whatever
2021-08-22 04:56:32
>>> import netifaces >>> def_gw_device = netifaces.gateways()['default'][netifaces.AF_INET][1]
0
Tags
get
int
Related
system.getproperty("user.dir");
New to Communities?
Join the community