Fix ip address printing

Credit goes to numeral for this one.