Remote Unix printing to my WinXP works with no router. How can I make it work through my router?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Remote Unix printing to my WinXP works with no router. How can I make it work through my router?
# 1  
Old 04-22-2010
Error Remote Unix printing to my WinXP works with no router. How can I make it work through my router?

I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do
lp -dhp842c /etc/hosts and it prints. I can even print through clients software to my printer.

Now, if I re-connect my linksys router to my PC (which is the proper configuration here), I cannot get it to print. I am using the IP address (ipconfig -all) for both scenarios since it changes when I change my setup.. so I know that is not the problem.

Do I need to make changes to my router? Forward a port?
Can this be done without a print server?

TIA,
Jmh
# 2  
Old 04-22-2010
So your printer is behind the router, and the remote system you want to print with is not? Your remote computer will need to print to the router's IP address, not the printer's. Then you'll need to configure your router to forward your print protocol's port to your printer's local IP address. You should also give your printer a static local IP so the router always forwards to the right IP.
# 3  
Old 04-22-2010
My printer doesn't have its own IP.. Its like this

Client's Unix Server
-- www ---
My cable modem
My router
My Win XP PC<---hardwired USB Printer

Does that clarify? I hope...
Jmh
# 4  
Old 04-22-2010
Quote:
Originally Posted by jmhohne
My printer doesn't have its own IP.. Its like this

Client's Unix Server
-- www ---
My cable modem
My router
My Win XP PC<---hardwired USB Printer

Does that clarify? I hope...
Jmh
Ah, yes. Port-forward to your PC instead.
# 5  
Old 04-22-2010
MySQL

Thanks for your reply. What port on my router would I be forwarding to my static ip?

Thanks,
jmh
# 6  
Old 04-22-2010
515 or 9100 depending on how you set up the printer on the unix system. Unless you set the printer up as a SMB printer through SAMBA (port 137 to 139). Port numbers are listed in /etc/services
# 7  
Old 04-22-2010
oooooohhhh! thank you so much..
I will try this tomorrow..have a great night Smilie
Jmh
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. IP Networking

Discussion at work, would a router work pluging a cable in wan1 and lan1?

hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view situation a router, with linux of some sort, dhcp client requesting for ip in wan1 (as usual with wan ports) dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies

2. IP Networking

My router has UPnP, as do its work with ubuntu to automatically open ports

My router has UPnP,how to make it work with ubuntu to automatically open ports I try to open the following command " /sbin/iptables -I INPUT -d 0/0 -s 0/0 -p tcp --dport 21 -j ACCEPT" ,local only opens ,if i put the ip 192.168.1.68, it works correctly, if i`m put my external ip does not work,I... (9 Replies)
Discussion started by: dhalus
9 Replies

3. UNIX for Dummies Questions & Answers

UNIX as ROUTER

dear all, hi... my name rian, i have some problem here, i'm trying to make router on UNIX machine, is there anyone know how to make it....... :confused: please let me know about the step.... thanks before.. cheers Rian (2 Replies)
Discussion started by: afriansyah
2 Replies
Login or Register to Ask a Question