Question: how to change the port name of a printer?
Answer: Click the Windows icon, then click "Control Panel" and "View devices and printers" below the "Hardware and Sound" heading.
Right-click the name of the network printer of which you want to change the port name. ... 
Select the port you want to rename and click "Configure Port..."