In the documentation, I found Socket.gethostbyName (Socket.gethostname ()) . But I have a mistake. The gethostbyname does not work, I don't know why. Python version 3.2. Tell me, because of what it may not work or another solution to the task.
question@mail.ru
·
01.01.1970 03:00
You need to find out the IP address of your computer on the Inteet in Python
answer@mail.ru
·
01.01.1970 03:00
& GT; & GT; & GT; Import http.client & gt; & gt; & gt; conn = http.client.httpconnection () & gt; & gt; & gt; conn.request (, ) & gt; & gt; conn.getresponse (). Read ()