Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Gateway IP could not be obtained. Please enter IP manually. #509

Open
kukritsa opened this issue Apr 15, 2022 · 1 comment
Open

Comments

@kukritsa
Copy link

No description provided.

@zLeki
Copy link

zLeki commented Mar 26, 2023

Try this

def getGatewayIP():
    global stopAnimation
    gws = netifaces.gateways()
    default_gateway = gws.get('default', {}).get(netifaces.AF_INET)

    if default_gateway:
        return default_gateway[0]
    else:
        return None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants