python-scripts/scripts/Public_IP_Address/README.md

18 lines
554 B
Markdown
Raw Normal View History

2022-09-16 17:59:42 +00:00
# Public IP Address
### Find your external IP address on the internet
2022-10-01 04:26:37 +00:00
It is a python code to make a request to [https://ipv4.icanhazip.com](https://ipv4.icanhazip.com), which in turn send a response back with your External IP address.
2022-09-16 17:59:42 +00:00
This response is in HTML so it also extracts only useful information from it and prints it as an output.
2022-10-01 04:26:37 +00:00
#### Requirements:
* Install requests module.
* run `pip install requests`
2022-09-16 17:59:42 +00:00
#### Usage
* Clone the repo
* open the `Public IP Address` folder
* run `python my_public_ip.py`
* You just recieved your public IP.