To find local IP addresses using Python's stdlib you can say use socket module and you will have your IP address:-
You need to run the following piece of code:-
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80))
print(s.getsockname()[0]) s.close()
But before running makes sure you have internet access, and also there is no local proxy.