Wrapper for hostip in ruby