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