Printer connection method