This is not very efficient, but you could get your ip using a webbased service
import urllib2
def getip():
webaddress = "http://www.getip.com"
page = urllib2.urlopen(webaddress)
pagetolines = page.readlines()
for i in pagetolines:
if i.find('<title>GetIP') != -1:
ipline = i
break
ip = ipline.split()[-1].replace("</title>","")
return ip
print getip()
I am not sure how to get that on you clipboard.
In a perfect world exceptions would not be needed.