We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9e3dcf + 388083b commit 82e7f23Copy full SHA for 82e7f23
Doc/library/socket.rst
@@ -568,11 +568,6 @@ The :mod:`socket` module also offers various network-related services:
568
Return a string containing the hostname of the machine where the Python
569
interpreter is currently executing.
570
571
- If you want to know the current machine's IP address, you may want to use
572
- ``gethostbyname(gethostname())``. This operation assumes that there is a
573
- valid address-to-host mapping for the host, and the assumption does not
574
- always hold.
575
-
576
Note: :func:`gethostname` doesn't always return the fully qualified domain
577
name; use :func:`getfqdn` for that.
578
0 commit comments