title: How to get and change Public IP in Python?
body: <p>I have been trying to get the live IP address in python and change it using a proxy server. The code I have seen is for local IP not the Public IP.</p>
  
  <p>How can I get public IP using python? i.e. the IP I get from <a href="https://www.whatismyip.com/" rel="nofollow noreferrer">whatismyip</a>, and can change the public IP using a proxy request in Python on windows.</p>