Forum Moderators: bakedjake

Message Too Old, No Replies

Redirecting LPT to ip

How can i redirect a LPT port to an ip address?

         

krayger

11:01 pm on Nov 12, 2003 (gmt 0)

10+ Year Member



I have a Red Hat 5.2 installed in a machine wich has a
printer attached to the LTP port. I want to access that printer from other computers in the same network using w2k operating system.I know that i can install SMB and configure the printer in order to give access to the other computers.

My question is: Won't be easier redirect the LPT port to an ip (a Jetdirect ip) and configure the Jetdirect in Linux?
How can i do that?
Any other ideas?

vrtlw

11:16 pm on Nov 12, 2003 (gmt 0)

10+ Year Member



There are a number of ways to do this.

If you have a JetDirect card or box installed in/on the printer then you don't need to bother using Linux.

If you have DHCP enabled on you network, the printer will be assigned an IP address automatically. If so check the DHCP table to find that IP address. Using telnet you can connect to that IP address and modify all of the settings including IP address (it makes sense to asign a static one to the port).

I used to install DHCP on my laptop and plug it into the network to assign out IP addresses on a short term basis just for this purpose.

The other alternative is to modify the IP address through the control panel of the printer (which is easy on most newer HP printers with an internal jetdirect).

Once you have a valid IP config, you can just install this on any machine that is communicating on IP to this address.

Alternatively you may be able to use HyperTerm with a serial cable (I dont remember which if any JetDirect devices use this process but it is common practice for many similar devices) which is refered to as a console connection.

Hope it helps

Paul

krayger

6:08 pm on Nov 13, 2003 (gmt 0)

10+ Year Member



Thanks for your answer,vrtlw, hope that helps me, but i still have a question:

How can i redirect the LPT port to an ip direction?
Is it possible in Linux?.
I know that this can be done in a Windows platform, but don't know if in linux this sould be possible.

Nova Reticulis

3:58 pm on Nov 17, 2003 (gmt 0)

10+ Year Member



I'm not sure if that helps, but netcat is your friend.