Python program to get IP address, Hostname, FQDN and active interface
In this video, you will learn how to get the IP address, hostname, fully qualified domain name and all active interfaces of a local System in Python.
We will also learn how to find FQDN for google website in this tutorial.
source code : https://github.com/TheProgrammingPortal/python_examples
gethostname() – https://docs.python.org/3/library/socket.html#socket.gethostname
gethostbyname() – https://docs.python.org/3/library/socket.html#socket.gethostbyname
gethostbyname_ex() – https://docs.python.org/3/library/socket.html#socket.gethostbyname_ex
getfqdn() – https://docs.python.org/3/library/socket.html#socket.getfqdn
Python tutorial – https://docs.python.org/3/tutorial/index.html
In this video you will learn:
– how to get the IP address and hostname of a local System in Python
– how to get fully qualified domain name in Python
– how to get all active network interface detail in Python
– how to handle exception in python
– how to import module in python
– socket module in python
– IP address in python
– gethostname method in python
– gethostbyname method in python
– gethostbyname_ex method in python
– getfqdn method in python
– Exception handling in python
Want to learn more from me?
Python examples complete Playlist :
Java examples complete Playlist :
#PythonProgramToGetIPAddress
#PythonProgramToGetIPAddressAndHostname
#PythonTutorial
#PythonTutorialForBeginners
#IPAddressInPython
#FQDNInPython
#PythonExamples
#IPAddress
#ActiveInterfaceInPython
Subscribe to my other channel for random videos:
IndianBox : https://www.youtube.com/channel/UC_F45pOu0ZWTpkt3gw6x2jA/?sub_confirmation=1
Follow us on:
Facebook : https://www.facebook.com/TheProgrammingPortal/
Instagram : https://www.instagram.com/theprogrammingportal/
Support:
Patreon : https://www.patreon.com/TheProgrammingPortal
Keep Coding!
ip address