ESC-POS-.NET
ESC-POS-.NET copied to clipboard
Network printer no port specified
Hi, I have a network printer OCPP-80582, this printer has no specific port for TCP connection, but when I try to connect to it, throw error asking me for port.
How can I do to connect without port?
This is my code:
new NetworkPrinter(new NetworkPrinterSettings() { ConnectionString = $"192.168.1.144" })
I use above constructor to create the printer due I can't use the samples page sample (seems not available on nugget 2.0):
var printer = new NetworkPrinter(ipAddress: "192.168.1.50", port: 9000, reconnectOnTimeout: true);
Tks.
I might be wrong, but I don't think there's such a thing as a network printer without port. That said, most of network printers that I have worked with uses 9100
port, so I'd try using that for your printer as well.
Tks, I'm going to try with it.
Tks, I'm going to try with it.
i am using ethernet and i don't know the port of address i use the 80 but not work
You can try with port 6091.
El mié, 9 de mar. de 2022 07:34, KevinAnass @.***> escribió:
Tks, I'm going to try with it.
i am using ethernet and i don't know the port of address i use the 80 but not work
— Reply to this email directly, view it on GitHub https://github.com/lukevp/ESC-POS-.NET/issues/137#issuecomment-1062780375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFTC6OQYIIKVTBCTHTH23U7B5C3ANCNFSM5FJXDFKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
El mié, 9 de mar. de 2022 07:34, KevinAnass @.***>
thank you so much the port by default is 9100 that is work for me