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

use socket to get host ip #4

Open
yechielb2000 opened this issue Apr 2, 2023 · 0 comments
Open

use socket to get host ip #4

yechielb2000 opened this issue Apr 2, 2023 · 0 comments

Comments

@yechielb2000
Copy link

To make sure everyone (and even you when your ip will change) can use this app you can use socket to get the host ip.

hostname=socket.gethostname()   
ip_address=socket.gethostbyname(hostname)

ip = '192.168.1.17'

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

1 participant