This script retrieves and displays the local machine's host name and associated IP address using Python's socket module.
main.py: Main script to get host name and IP address.
- Make sure you have Python installed (version 3.x recommended).
- Open a terminal or command prompt.
- Navigate to the folder containing the script.
- Run the script:
python main.py or python3 main.py
## Example Output
Host name: MyComputer
IP Address: 192.168.1.5