Expose public_ip attribute

Simple patch to expose the public_ip attribute.