Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Network printer in DOS (Users)

posted by Arjay, 28.02.2012, 21:20

> but I hadn't success. Got this error:
>
> Server resolved to 192.168.4.102 - connecting
> Socket open failed
OK, looks like the port is unavailable to connect to. What printer is it? Have you checked if raw printing has been enabled on its built in or external network card? Have you checked if port 9100 is being blocked by a firewall etc.


> I tried NetCat from MTCP package and wrote "nc -target 192.168.4.102 9100 <
> file.txt"
Firstly I would suggest using -vv for extra verbose on netcat. Also be aware that command line help for nc is normally obtained via "nc -h" due to its Unix heritage. I would strongly suggest using the -w 1 option as that page refers to for a slight wait since it can make a big difference with netcat.

[edit] I suspect most likely "raw" printing is either not supported on the printer or more likely turned off hence question as to which printer make/model.
Many older printers also liked to get a CTRL ^L (line feed character) on the end of text files as a termination. Again unlikely to be the answer to this issue but worth trying if all else fails.

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum