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

Find IP addresses more robustly using netifaces #1137

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Find IP addresses more robustly using netifaces #1137

merged 1 commit into from
Jul 6, 2023

Conversation

falkoschindler
Copy link
Contributor

Running NiceGUI with host='0.0.0.0' (the default) on Ubuntu revealed an issue with finding all IP addresses of the machine. The following welcome message didn't always contain the 192.168.x.x address:

NiceGUI ready to go on http://localhost:8080, and http://192.168.0.42:8080

This PR resolves this issue using the netifaces package instead of socket. It introduces another dependency, but it's a small one.

@falkoschindler falkoschindler requested a review from rodja July 6, 2023 14:09
@falkoschindler falkoschindler added the bug Something isn't working label Jul 6, 2023
@falkoschindler falkoschindler added this to the 1.3.0 milestone Jul 6, 2023
@rodja rodja merged commit 6e0465c into main Jul 6, 2023
6 checks passed
@rodja rodja deleted the ip-addresses branch July 6, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants