Use common net utility code (address and sockaddr manipulation).