Use inet_ntoa instead of manual conversion
Make it a little prettier
Handle all the address types