The issue for me is basically this -> https://github.com/python/cpython/issues/79345, my end goal is to get a list of ips from socket.gethostbyname_ex and then to pick a private ip, although the fqdn method returns 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa this for me and hence the gethostbname_ex fails on some macs including mine although socket.gethostbyname_ex(socket.gethostname()) works for me but in the issue that is also marked as raising the error ... so what would be the best cross platform way to get a private ip
#๐ how do i reliably get a list of ips to get a private ip
4 messages ยท Page 1 of 1 (latest)
@spark lion
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
@spark lion
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.