IP Address
This is a python code that provides the name and the internet protocol address of the computer.
- You need to install socket
pip install socket
- Socket is the endpoint between two communications line running on the internet through port.
.gethostbyname
is a function to access socket information.- the gethost parameter is to get the address hosting the communication.