This project aims to find the hostname and IP address of a device. It can be useful in cybersecurity, networking, or just to identify your machine in a network.
π Available languages | ESPAΓOL π ENGLISH
- Get the hostname of the current device.
- Get the main IP address of the current device.
- Easy and simple to run and understand.
- Python 3.x
- No extra packages required. However, it may be necessary to install the socket module using the command:
pip install socketssocket is a standard Python library. It allows communication between devices over networks.
Clone the repository and run the script from the terminal:
python hostname_ip_finder.pyπ Go to the code
- This script only gives the primary IP.
- For all network interfaces consider using psutil or netifaces.
- Advanced options: Integrate with port scanning or export results to CSV/JSON for auditing.