Network printer in DOS (Users)
> 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:
- Network printer in DOS - Laaca, 27.02.2012, 20:14 (Users)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Network printer in DOS - bretjohn, 28.02.2012, 01:48
- Network printer in DOS - Laaca, 28.02.2012, 06:50
- Network printer in DOS - Arjay, 28.02.2012, 07:50
- Network printer in DOS - Laaca, 28.02.2012, 15:44
- Network printer in DOS - Arjay, 28.02.2012, 21:20
- Network printer in DOS - mbbrutman, 01.03.2012, 06:19
- Network printer in DOS - Rugxulo, 02.03.2012, 06:37
- Network printer in DOS - Laaca, 28.02.2012, 15:44
- Network printer in DOS - bretjohn, 28.02.2012, 19:35
- Network printer in DOS - Arjay, 28.02.2012, 07:50
- Network printer in DOS - Laaca, 28.02.2012, 06:50
- Network printer in DOS - bretjohn, 28.02.2012, 01:48
Mix view