Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DOS Print to TCP/IP printer

158 views
Skip to first unread message

Albert Howard

unread,
Aug 19, 1997, 3:00:00 AM8/19/97
to

With windows nt, how does one redirect LPT1 to a network printer?
This is a TCP printer and the only address I have for it is
10.10.10.60:LP. NET USE does not recognize this, but this is the only
address I have.

I have files that already have print formatting in them. Copying to
LPT1 works fine if I have a local printer. But I'm not able to get
them to a network printer because the COPY command won't copy to a tcp
address and if you try to drop it on a printer icon in NT, nt wants an
application to start the job with.

Rog

unread,
Aug 19, 1997, 3:00:00 AM8/19/97
to

Try assigning the IP address a name in your hosts file..

From the NT Workstation Resource Guide:

Microsoft TCP/IP can be configured to search HOSTS (the local host
table file) for mappings of remote host names to IP addresses. The
HOSTS file format is the same as the format for host tables in the 4.3
Berkeley Software Distribution (BSD) UNIX /etc/hosts file. For
example, the entry for a computer with an address of 192.102.73.6 and
a host name of mfg1.widgets.com looks like this:

192.102.73.6 mfg1.widgets.com

You can create the file by using a text editor ž for example, Notepad
ž to create, and change the HOSTS file because it is a simple text
file. (An example of the HOSTS format is provided in the file named
HOSTS.sam in the Windows NT %systemroot%
\System32\Drivers\Etc directory. This is only an example file; do not
use this file as the primary HOSTS file.)Edit the sample HOSTS file
(created when you install TCP/IP) to include remote host names and IP
addresses for each computer with which you will communicate.
email replies can be sent to
rogerp@nospam
(change nospam to city-net.com)

Roger J.Hamlett

unread,
Aug 19, 1997, 3:00:00 AM8/19/97
to

In article: <33f9edf3...@news.concentric.net>
star...@concentric.net (Albert Howard) writes:
>
> With windows nt, how does one redirect LPT1 to a network printer?
> This is a TCP printer and the only address I have for it is
> 10.10.10.60:LP. NET USE does not recognize this, but this is the
only
> address I have.
>
> I have files that already have print formatting in them. Copying
to
> LPT1 works fine if I have a local printer. But I'm not able to get
> them to a network printer because the COPY command won't copy to a
tcp
> address and if you try to drop it on a printer icon in NT, nt wants
an
> application to start the job with.
You need to add the 'Microsoft TCP/IP Printing' service.
Then in printer-properties, 'Add port'. This asks for the 'name or
address of server providing lpd', which is the TCP/IP address you
have. Once you have attached a printer to this port, you can if you
wish attach a 'generic text only' printer, which does no 'filtering,
and set this as the 'dos printer'.
It is a while since I did this, but this should be enough to get you
headed in the right direction.

Good Luck

--
--------------------------------------------------------------------
| EMail ro...@ttelmah.demon.co.uk http://www.ttelmah.demon.co.uk/ |
| A beard! A beard! cried Fly Nicholas.'By God, that's a good one!'|
| (Chaucer) |

Jorge Herrera

unread,
Aug 21, 1997, 3:00:00 AM8/21/97
to

use lpr, type lpr /? for the correct statements, if it is not installed,
then you need to install TCP/IP printing.

- Jorge

Rog <nos...@spam.be.gone> wrote in article
<33fb0649...@206.102.128.2>...


> On Tue, 19 Aug 1997 19:06:50 GMT, star...@concentric.net (Albert
> Howard) wrote:
>

Wellington Mar

unread,
Aug 22, 1997, 3:00:00 AM8/22/97
to

>
> In article: <33f9edf3...@news.concentric.net>
> star...@concentric.net (Albert Howard) writes:
> >
> > With windows nt, how does one redirect LPT1 to a network printer?
> > This is a TCP printer and the only address I have for it is
> > 10.10.10.60:LP. NET USE does not recognize this, but this is the
> only
> > address I have.
> >
> > I have files that already have print formatting in them. Copying
> to
> > LPT1 works fine if I have a local printer. But I'm not able to get
> > them to a network printer because the COPY command won't copy to a
> tcp
> > address and if you try to drop it on a printer icon in NT, nt wants
> an
> > application to start the job with.
> You need to add the 'Microsoft TCP/IP Printing' service.
> Then in printer-properties, 'Add port'. This asks for the 'name or
> address of server providing lpd', which is the TCP/IP address you
> have. Once you have attached a printer to this port, you can if you
> wish attach a 'generic text only' printer, which does no 'filtering,
> and set this as the 'dos printer'.
> It is a while since I did this, but this should be enough to get you
> headed in the right direction.
>
> Good Luck
__________________________

after tcpip printing is configured, do the following from dos prompt.

lpr -S ip address of printer -P ip address of printer -ol filename

WM

Lucien J. Jacquet

unread,
Aug 22, 1997, 3:00:00 AM8/22/97
to

"Jorge Herrera" <j.he...@sarcos.com> wrote:

>use lpr, type lpr /? for the correct statements, if it is not installed,
>then you need to install TCP/IP printing.
>
>- Jorge
>
>Rog <nos...@spam.be.gone> wrote in article
><33fb0649...@206.102.128.2>...
>> On Tue, 19 Aug 1997 19:06:50 GMT, star...@concentric.net (Albert
>> Howard) wrote:
>>

>> >With windows nt, how does one redirect LPT1 to a network printer?
>> >This is a TCP printer and the only address I have for it is
>> >10.10.10.60:LP. NET USE does not recognize this, but this is the only
>> >address I have.
>>


Hope this helps...

Lucien


+----------------------------------------------------------+
| If the purpose of feet is to walk and run, and the |
| purpose of painting is to make signs, then ballet and |
| Rembrandt are equally useless. |
| All art springs from the non-obvious use of tools. |
+----------------------------------------------------------+

Gerard Farrell

unread,
Aug 28, 1997, 3:00:00 AM8/28/97
to

Try sharing the printer and then using net use to connect lpt1 to the share
name. I think I got this to work a while ago.

Gerard
-----
Dr. Gerard Farrell
Manchester Scientific Instruments Ltd
Campus Ventures Centre, University of Manchester
Oxford Rd, Manchester M13 9PL, UK
Tel: +44 161 934 0004 | E-mail: ger...@msi.campus-ventures.co.uk
Fax: +44 161 273 5111 | WWW: http://msi.campus-ventures.co.uk

Albert Howard wrote in article <33f9edf3...@news.concentric.net>...

>With windows nt, how does one redirect LPT1 to a network printer?
>This is a TCP printer and the only address I have for it is
>10.10.10.60:LP. NET USE does not recognize this, but this is the only
>address I have.
>

dwe...@uconect.net

unread,
Aug 30, 1997, 3:00:00 AM8/30/97
to

In article ,

"Gerard Farrell" wrote:
>
> Try sharing the printer and then using net use to connect lpt1 to the share
> name. I think I got this to work a while ago.
>
> Gerard
> -----
> Dr. Gerard Farrell
> Manchester Scientific Instruments Ltd
> Campus Ventures Centre, University of Manchester
> Oxford Rd, Manchester M13 9PL, UK
> Tel: +44 161 934 0004 | E-mail: ger...@msi.campus-ventures.co.uk
> Fax: +44 161 273 5111 | WWW: http://msi.campus-ventures.co.uk
>
> Albert Howard wrote in article ...

>
> >With windows nt, how does one redirect LPT1 to a network printer?
> >This is a TCP printer and the only address I have for it is
> >10.10.10.60:LP. NET USE does not recognize this, but this is the only
> >address I have.
> >
> >I have files that already have print formatting in them. Copying to
> >LPT1 works fine if I have a local printer. But I'm not able to get
> >them to a network printer because the COPY command won't copy to a tcp
> >address and if you try to drop it on a printer icon in NT, nt wants an
> >application to start the job with.

Assuming you have adminsitrator rights, log into the local PC you want to
run the print job from. In Print Manager, "Create" a printer using port
"Other" "LPR" and in the 2 available fields type in the IP address of the
printer. Choose "OK." Share the printer on the network by selecting that
option. Give the printer a sharename in the specified field (ie: HP4MV1,
HP4MV2, etc...) Go to a DOS window. Type "NET USE LPT1 \\< your
computername >\< the sharename you created >. This will redirect the
output of a DOS program normally looking for LPT1 to the network
sharename of the printer and send the job to the printer's IP address via
LPR port. Good Luck.

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet

Frank Sexton

unread,
Aug 30, 1997, 3:00:00 AM8/30/97
to

> Try sharing the printer and then using net use to
> connect lpt1 to the share name. I think I got this
> to work a while ago.

I run an OS/2 system and an NT system. I can use "NET USE LPT3:"to easily
connect my shared OS/2 printer to my NT Workstation on a logical NT LPT3
port. Works great. What I want to know is how can I get the equivilant
functionallity of "NET USE LPT3:" from my GUI NT interface. When I use the
"normal" methos of pointing and clicking and adding a network printer, I am
unable to remap LPT3 to be the output. It works fine, and prints to a "LAN
TCP/IP" port. However some DOS apps require the use of LPT?: to work.
Ideas?

Thanks,

-Frank

0 new messages