how to get local and public ip by pyhton code example
Example: python get public ip address
from requests import get
ip = get('https://api.ipify.org').text
print(f'My public IP address is: {ip}')
from requests import get
ip = get('https://api.ipify.org').text
print(f'My public IP address is: {ip}')