ESC-POS-.NET icon indicating copy to clipboard operation
ESC-POS-.NET copied to clipboard

Network printer no port specified

Open jupagose opened this issue 3 years ago • 5 comments

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.

jupagose avatar Oct 04 '21 16:10 jupagose

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.

igorocampos avatar Oct 14 '21 17:10 igorocampos

Tks, I'm going to try with it.

jupagose avatar Oct 14 '21 19:10 jupagose

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

KevinAnass avatar Mar 09 '22 10:03 KevinAnass

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: @.***>

arielbvargas avatar Mar 09 '22 11:03 arielbvargas

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

KevinAnass avatar Mar 11 '22 21:03 KevinAnass