You need to find out the IP address of your computer on the Internet in Python
📁 AI, work
In the documentation, I found socket.gethostbyname(socket.gethostname()). But I get an error. The gethostbyname does not work, I don't know why. Python version 3.2. Tell me why it might not work or another solution to the task.
No answers yet.
Log in to leave an answer