simplify IO::Socket::IP specific code