modify the display format of IP addresses

include both v4 and v6 addreses