I'm trying to set up a windows guest to print to an ubuntu (10.04) host. To cut a
long story short (I've been working on this for a few evenings) I started here: http://forums.virtualbox.org/viewtopic.php?t=1465
So I set up a network printer in windows, with url:http://DEFAULTGATEWAY:631/printers/PRINTERNAME
But once I've added in real values and clicked "Next", windows responds with
"Windows cannot connect to the printer. Either the printer name was
typed incorrectly, or the specified printer has lost its connection
to the server".
I'm using the NAT networking option for the guest, and I can surf the web
(but I can't access the host's cups web interface). I figured that cups was maybe
rejecting the guest's attempts to connect/print and I eventually verified this
when I found the cups error log, which has faithfully recorded each of the guest's
attempts to print. For example...
E [04/Aug/2010:21:48:20 +0100] Request from "localhost" using invalid Host: field "10.0.2.2:631"
I've tried various solutions, such as this one...http://www.linuxforums.org/forum/mandriva-linux-help/151962-solved-cups-printing-error-request-localhost-using-invalid-host-field.html
...and others which also involve tinkering with cupsd.conf & restarting cups
but still no joy.
I'm starting to run out of ideas. There must be an easy answer, certainly all the forum
posts I find comment about how easy this all is. Maybe there's a bug somewhere?
For the record: Ubuntu 10.04LTS, Cups 1.4.3, and VirtualBox 3.6.2 (closed source
version, because I need usb support). It's not a USB printer, alas.
Any ideas, anyone?