Fix printer ip and mac when use network discovery. references #2227