I'm attempting to write a small script that retrieves a servers 
external IP adress, but I keep comming up with it's subnet IP, any 
suggestion on how to grab the external IP? Thank you much :)

Here's the Code for returning the the IP from the hostname:

host = Socket.gethostname
IP = IPSocket.getaddress(host)