Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SEt printer to Name \ \server\printer - when server is IP address

Status
Not open for further replies.

ahaws

Programmer
Nov 28, 2001
355
US
Hi all-
I had posted a thread titled "Calling printers by IP address - possible?" and received some good advicefrom BluePanic to:
SET PRINTER TO NAME \\server\printer

Well - found out that all of our branch offices have the same name for the printer, so can use the name of the printer - BUT - the server does not have a name.
Each branch has a print server named by IP address.

So I was wondering if I could say something like:
SET PRINTER TO NAME \\10.01.21.5\Forms Printer

Is this possible?

Thanks in advance for everyone's help!
Angie
 
Angie

So far as I am aware any printers that are assigned by their TCPIP address, you simply reference them by the name of the local machine and the shared name of the printer.

You have to set up the printer on the client in the first place.
You can get derive the local machine name from sys(0) and then add "\" + {printer share name}

I connect to a printer on the network in exactly this way using
Code:
set printer to \\truemanw\hplaser4
where truemanw is my local machine name and hplaser4 is the printer share name

I hope this helps, Im sure there will also be cleverer ways to use the tcpip address, but I'll leave that for the "experts"



WTrueman
...if it works dont mess with it
 
Angie,

My memory is a bit poor on this one, but once the printer on your target machine has been shared, you will be able to use its IP address to reach it. Try this:

SET PRINTER TO \\xxx.xxx.xxx.xxx\Px

or

SET PRINTER TO \\xxx.xxx.xxx.xxx\LPTx

If the printer is attached to Port 1 on the Print Server, use 'P1'

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top