Ensure proper IPv4 encoding for advertise addr