Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe14.iad.POSTED!83aa503d!not-for-mail From: Daniel Pitts User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Capture sniff print server packets References: <4e6f3724-edbe-4e10-83b5-193bbddde0cb@e27g2000vbu.googlegroups.com> In-Reply-To: <4e6f3724-edbe-4e10-83b5-193bbddde0cb@e27g2000vbu.googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Lines: 25 Message-ID: X-Complaints-To: abuse@newsrazor.net NNTP-Posting-Date: Wed, 22 Feb 2012 01:46:00 UTC Date: Tue, 21 Feb 2012 17:45:58 -0800 X-Received-Bytes: 2146 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12240 On 2/17/12 11:40 AM, utsuxs@hotmail.com wrote: > I am on a LAN that has a TCP/IP print server. I like to capture the > data sent to the print server. I’ve tried jsniff with jpcap but > that only seems to capture the tcp port of the pc I am on, not TCP/IP > of the print server. You can try Wireshark to verify that the traffic makes it to your machine in the first place. If there is a network switch involved, the network traffic may not be broadcast to your node. Also, if you are on a wireless network, some wireless cards and driver combinations prevent "sniffing" of traffic to other devices. > Is it possible to capture the data of the print server? Or turn my pc > in into a virtual printer and capture printer data that way? > Ideally I like to process the print jobs before they print but I’ll > take what ever I can get. Scanning the print jobs would be fine too. > Any pointers and especially source code would be great. > Thank you This makes me curious what you're *really* trying to do. It may not involve sniffing at all. You might be right on the path to creating a virtual printer, but they may also be more complex then necessary. Perhaps all you need to do is enable access to the print-queue on the print server. Details vary by brand ;-)