Java source which makes connection to IP printer on TCP/IP network. URGENT!

I want to develop a Java application which makes connection to IP printer on TCP/IP network and sends data to be printed as string. The printer can be at other location or in other country but it should be able to print the data in the string. It should not be necessary to install printer on the machine, when you open your printer attached to your computer from control panel you will not find the printer. Programming should be in socket programming. When connection is been made between machine and the printer, what ever you write in your string gets printed automatically at printer. I don't want to use printer name just its IP address. Printer can be of any type postscript or pcl. Thank you.

pour some money

Similar Messages

  • How can I print from my iPad through my Mac Book Pro which is connected to a printer?  I was told I could do this.

    How can I print from my iPad through my Mac Book Pro which is connected to a printer?  I was told I could do this when the iPad and Mac Book Pro are synched together.

    Antique lady wrote:
    So If I download Printopia on my Mac Book Pro, do I go to iTunes to somehow connect the computer and the iPad? 
    No.
    Printopia (running on your Mac) connects the iPad to your printer.

  • How do I make my HP P2055dn printer into a wireless network printer for 5 computers

    How do I make my HP P2055dn printer into a wireless network printer for 5 computers? Windows versions on computers used are  XP,Vista & 7.
    Thanks
    Leon

    Unplug the USB cable from the printer.  Plug your printer into your wireless router with an Ethernet cable.
    Next, on each computer, get the latest software for your printer from the "Support & Drivers" link at the top of this page.  Install it and select "Network" installation when it asks.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Connected wirelessly to Canon printer MX340. Duplex printing option is grayed out for me but not on my daughter's non-Mac laptop or husband's PC which is connected to the printer. Mine has two-sided option available at the Apple store. Any ideas?

    We use a Canon MX340 series printer/fax/scanner. My husband has his PC hooked to it and my daughter prints wirelessly from it with no problem with her non-Mac laptop. I have trouble printing. Often it does not print and I have to delete the job from the queue. Other times it will print OK but two-sided printing is always grayed out in my printing options. When I took it to the Apple store and printed on their network (selecting their printer) the two-sided option was available. Makes me think the printer is set up wrong, but I am not certain. A fw times at home when trying to print I got an error message about incompatible fonts, but it printed anyway after deleting the job and starting over. Does anyone have any ideas? Thanks

    OK, just an update.
    Two years into this, I still find I can only do full duplex printing by using Windows XP running inside of VMWare. I've had occasional, ephemeral luck with duplex printing, but nothing long lasting.
    I've tried this in Tiger and Leopard (now at 10.5.6), and I've had this issue with Canon printers MP780 iP4300 and MP610, direct connected to my Core2Duo 17" MBP. I also have this issue when printing over a network, but that's a much harder problem to solve.
    Currently, this is my #1 most pressing issue for my Mac, because not being able to print from a computer when you print a lot is a really big drag, and using VMWare all the time is also a really big drag. Other people posting seem to be able to print in Duplex using the very same printers. What could be wrong with my MBP? I see the duplex box option, but most of the time it's grayed out as if my printer doesn't support duplex.
    I've tried direct selecting printer drivers from the system preferences, but nothing seems to have an effect. And this is off of a clean Leopard install.
    My wife now has similar problems with her new MBP - the Canon print drivers (CUSP & non CUSP) aren't allowing the Duplex box to be checked.
    I am willing to pay good money to anyone who thinks they can fix this problem.
    Thank you,
    - Jeff

  • Can't connect my P1102w printer to my wireless network (using Mac OS 10.6)

    I have a vanilla home wireless network (D-Link to a cable modem), and a MacMini running OS 10.6.8. My Mac laptop and 4th. Gen iPad work seamlessly. But my hours-long attempt to connect my new HP P1102w to the network has been totally frustrating, despite close study of the pdf documentation, the printer's self-test/Device configuration sheet, browsing this forum, watching a slew of YouTube/HP videos, and  following all manner of directions.
    The only consolation is the printer works fine on its USB connection. 
    Here are some issues I've encountered that have stopped me in my tracks:   
    Carefully following both the pdf instructions and HP's online how-to video, I get through Step 6 w/ no problemn. but then I go to Step 7, which says:
    " Under Communication Mode , click Infrastructure , select your network SSID from the Available Network Names (SSID) list, and then click the << button."
    Problem is there's nothing of the kind in that window. All I see is a status of the Wireless: enable or disabled (depending on a choice). And even if I try selecting Enabled, it switches right back to Disabled. Aside: I note the printed instructions show a copyright date of 2011. That's ancient history in the CPU world.  
    Other issues: The only IP address I can find for the printer is the IPv4 address, but that's only for Direct Print Configuration. Is that the IP address I'm looking for?
    The printer's hardward address, I assume, is its MAC ? Boy, I could sure use clearer use of language here. 
    So, needless to add, I'm stuck. It seems it should be THAT hard, but so far nothing I've been able to find on HP support or the forums seems to help. Thanks for any advice you can provide.
    PS. I'd hate to have to return this printer because I'm a two decade HP printer lover, but, alas, I may have to if I can't find a solution.
    Northwest John
    This question was solved.
    View Solution.

    Hi @Northwest-John, 
    I see by your post that you are unable to setup the printer on the wireless network. I can help you.
    Update the printer's firmware by the USB connection just to make sure that isn't causing any issues with the printer's Embedded Web Server (EWS) not allowing the proper changes. HP LaserJet P1102w Firmware Update Utility.
    The newest version is 20130703, which you can compare by printing the configuration page.
    Power cycle the router and restart the Mac.
    The printer won't recognize the network name if there usually is any symbols or spaces in the network name.
    Make sure Safari is set as the default browser. Sometimes the Embedded Web Server (EWS) won't open in other browsers. Open Safari, across the top select the Safari menu, select Preferences, General, set as default.
    Turn the printer off, hold down the wireless button and cancel (x button) while turning the printer back on and don't release the two buttons until the printer stops making noise.
    Print out a configuration report and make sure the SSID and IP address are cleared.
    (hold down the x button and when the printer makes a noise let go)
    Connect the USB cable from the printer to the Mac.
    Go to the Apple, system preferences, print and fax.
    Double click on the P1102w.
    Open the utility.
    Click printer setup.
    Click HTML config.
    This should open the Embedded Web Server for the printer.
    Click the Networking tab.
    Click Wireless from the list on the left.
    (Click Enable if you have this option)
    Under Communication Mode , click Infrastructure.
    Select your network SSID from the Available Network Names (SSID) list and then click the << button so the network name moves over to other box.
    From the Security Mode pop-up menu under Authentication , click WEP, WPA/WPA2 or open . Your selection depends on which Wireless Security Protocol your network uses.
    Make sure you select either hexadecimal or alpha depending on your password. (very important)
    Apply the settings.
    In the confirmation box, (changes have been saved) click OK.
    You should get a solid blue light on the printer shortly.
    Then all we have to do is delete the USB driver and add the network driver.
    Click on the Apple.
    Click system preferences.
    Click the print and fax icon.
    Highlight the printer and click on the - sign to delete the printer. (USB driver)
    Disconnect the USB cable.
    Then click the + sign and select the printer from the list and click add. (P1102w bonjour)
    Test the printer.
    If you have any issues with the HTML config opening then do the following steps:
    Close any applications.
    On the Apple menu bar, click Go, computer, MAC harddrive, Library, Printers, HP, LaserJet, click on folder for your printer, click on EWS browser or HTML config, click the Networking tab, click wireless on the left and fill out your information. (make sure infrastructure is selected) Apply settings.
    Then delete the USB driver and add the network printer.
    Let me know if you are still having issues with filling out the EWS for the printer.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Why won't my Macbook Pro recognize (and connect to) a printer on same WiFi network as my Mac.

    My Macbook Pro was connected and printing to my WiFi network just fine.  However, I started getting an error message saying my printer was not connected.  I checked my printer and it is still connected to wirelss network and the printer test confirmed it was with a strong signal. I have turned off and restarted both the printer and Macbook but I am still getting the same error and it will not print. I decided to delete the printer and add it back, however, when I tried to add it my Macbook didn't list this device or my label maker that is also connected to the network.  It is as though my Mac is not recognizing any devices on the network.  Could I have a setting wrong on my Macbook?  My notebook is connected to the network and it is working.  Both my printing devices show they are connected to the same network.  Help!  I would appreciate any suggestions !

    I had almost the same thing happen the other day - kept getting a message that my printer was not connected. I went to the printer setup on the printer's panel and the IP address was correct, everything looked as if it should be working. So I just reset my router - figuring that would fix the problem. No go. What I finally ended up doing was resetting my router to factory settings and setting it up anew.
    And that's what worked for me.
    Clinton

  • Can I connect a wireless printer to two wireless networks

    I searched and couldn't find an answer to this exact situation. The answers to similar questions didn't seem to work.
    Can we share a wireless printer over two wireless networks without adding hardware or changing the wiring or doing complicated software modifications?
    Here is my set-up:
    Cable Modem> Linksys Wireless Router “N” on the first floor > older AirPort Extreme “G” via ethernet cable on second floor > Laser Printer via USB Cable on the second floor, plus an AirPort Express to extend the area on the second floor. We have 2 MacBooks and 1 MacBookPro that connect to the internet via either of 2 wireless networks. Generally, for better connection, you choose “N” if you are on the first floor and “G” for the second floor.
    Currently, if you want to print to the USB Printer, you just select it in the print dialog box. It does not matter if you are on Network “N” or Network “G.”
    We just added a new wireless Printer that’s on the first floor. (No, I didn't read the directions, the printer screen said if there is a W?? button on your router, press it. I did and it automatically connected to the “N” network. It also has its own email address for printing without a computer, but that still doesn't solve this question.)
    If you want to print to this printer, you must first change the computer’s AirPort setting to join the “N” network. If you don't, you still get the print dialog box, but eventually you will notice that nothing happens. The document just sits in the Printer’s queue.
    Is there a way to get a computer on the “G” network to find the wireless printer on the “N” network without first changing networks?
    Remember, it automatically finds the USB printer that is plugged into the “G” network router.

    It used to be that if you wanted to wirelessly extend the range of a network, you'd have to set up a WDS. (WDS = Wireless Distribution System.) There was no "Extend a wireless network" option and no "Allow this network to be extended" checkbox—you'd have to fill out lots of WDS information yourself. It was sort of a pain.
    Then, with the 802.11n AirPorts, Apple introduced the "Extend a wireless network" option, greatly simplifying the setup process. It accomplishes the same thing as a WDS, but it's easier to set up and has less overhead. However, it can only be used if every AirPort in the wireless network supports 802.11n.
    Your Express may support 802.11n, but your Extreme is older and does not. So "Extend a wireless network" won't work for your network. That's why you got errors when you set the Express's "Wireless Mode" option to "Extend a wireless network." Instead, you'll have to do things the old-fashioned way* and configure the Extreme and the Express to be part of a WDS. Your network will still work as desired: the Express will rebroadcast the signal from the Extreme, and clients will connect to whichever station has the stronger signal. It's just that you'll be using the older WDS technology instead of the newer "Extend a wireless network" feature.
    "Join a wireless network" is something different entirely. You'd use it if you wanted to connect to a network but not rebroadcast it. This could be useful when, for instance, your main router isn't an AirPort but you want to use AirTunes. In your case, however, this option wouldn't be very useful.
    Look at [this thread|http://discussions.apple.com/thread.jspa?threadID=2588489] for more information.
    *Actually, the old-fashioned way would be to use modems. Or to forget about the internet and send snail mail instead.

  • Java code to make connection to web server??

    Hi,
    we are looking at simple java code to connect to IIS Server and retrive a ZIPed file.
    this zip file contains photos. all individual photos are stored in zip file under doc root of IIS server..
    any sample code will be great

    Here is some code on how to open an URL and read from it.
    url = new URL("http://IIS_server/doc/Yourfile.zip");
    URLConnection conn = url.openConnection();
    conn.setDoInput(true);
    in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    StringBuffer sbResponse = new StringBuffer();
    int intChar = 0;
    while ((intChar = in.read()) !=-1) {
         // got one byte as int from the server do something here to pass the byte from one stream to another (filestream)
         // there is a way to save to the local HD with an applet but you have to sign it and adjust some security policys
    in.close();

  • Problem with Java cache which makes the computer very slow.

    Hello!
    I think that Java has installed som code that creats problems to my processor when I am working with the computer.
    I have got the following wrong code: 0x805 8023 and the containerfile & file below:
    1) Containerfile C:\Users\Oskar\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\37a4040b-62415be5
    2) File C:\Users\Oskar\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\37a4040b-62415be5->cuumfrsmeyghklbvetb/bljwt
    hwbhkkbsywmtwjeqk.class
    Could you please help me to get rid of the problem?
    You can do it directly or give me the instructions by e-mail : [email protected]
    Thank you in advance
    Best regards

    Check for malware infection. The names of these files really indicate the system is infected.
    Which version of Java client is installed? Especially older versions are very vulnerable against website or email based attacks.
    Since malware infections are very different, detailed support can hardly be given via forums.
    Best greetings from Germany
    Olaf

  • WRT54GC config to connect a wired-printer on existing wireless network

    Hello everyone,
    I hope someone can help me with the following issue :
    - I have an existing wireless network at home, set up with a wireless router/dsl connection
    - I now have been given a wired-printer, and I'd like to connect my printer to the existing wireless network, using a WRT54GC device.
    I have been trying for a while, and I believe but can't manage to configure the device do this, and didn't find this in the forum yet.
    As anyone already done this successfully ?
    Thank you

    What is the make and model of your printer?  What type of connections does it have -- ethernet port?   USB port?  Parallel port?
    If your printer has an ethernet port, you can wire it directly to your router.
    If your printer has only a USB port, you will need a printer server such as the Linksys WPS54G, WPSM54G.    These devices will allow you to use the printer as a wired or wireless printer.  Both of these devices support USB 1.1 and USB 2.0
    I do not recommend the Linksys PSUS4 (wired print server with 4 port switch), because it only supports USB 1.1

  • Connect to a printer via TCP connection with wifi

    Hi,
    what i would like to do, is to connect a printer to the iPhone via wireless.
    The printer is in the same wifi as the iPhone and the ip adress is known.
    So what i started to to is, to create a SocketConnection with CFStreamCreatePairWithSocketToHost(...). But if i switch of the printer, the inputstream is created too, and is not NULL as expected.
    Is this the right approach im using or is there a better possibilty to send strings to my printer using a tcp connection over wifi?
    Regards,
    Grinarn

    Welcome to Apple Discussions!
    In the Help menu of the Finder is a little app called Mac Help. Most Apple apps and many 3rd party apps also use Mac Help. In Mac Help is an article called *Adding a printer shared by a Windows computer via SMB/CIFS*. This article is regarding sharing a printer that is connected to a PC over a network however, and not to a router, but may have info useful to troubleshooting. You might also check with your Linksys user guide for info on sharing this printer with a Mac over the network.

  • Connecting to a printer in a Windows network

    I recently upgraded to OS X Lion without too much hassle or problems, except that I am now unable to print using the office printer. It is a fairly 'old' model, Kyocera FS 2000D, and since I upgraded it asks for authentication every time I attempt to print. The printer is shared from a Windows computer and it was setup without requiring authentication. Needless to say, logging in with my user name and password does not work.
    I tried checking the Kyocera site, and unfortunately they only have the driver for OS X 10.5 (which also worked with Snow Leopard).
    Is there a way I can print using this printer, in the absence of an updated driver?

    To add a Windows shared printer to the Mac, regardless of what OS X is running, you will be prompted to authenticate using a Windows account/password. If the Guest account is enabled on Windows you can select to authenticate with that.
    Then when you print the first time you will also have to enter the Windows account details. But if you save this information to your Mac Keychain, then the next time you print you will not have to provide the authentication details.
    As for the driver, if the Kyocera supports the Postscript or PCL printer languages, then you could use the Generic PS or Generic PCL driver that is included with Lion to print until Kyocera releases a driver update.

  • HT3500 Trouble connecting to a printer (On a windows network)

    I have a Canon MP600 printer. It has windows computers connected to it, and I have no airport. I'm having a lot of difficulty connecting my macbook air to it. Any suggestions, or helpful tips? It would be greatly appreciated.

    thankyou for responding
    No i could'nt find it, and then tried adding it manually
    More info:
    - the mac is connected to the same internet connection that the windows computers are using
    - what i've tried doing right now (based on google searches)
    system preferences>print & scan> '+' > advanced>
    type: windows
    Device: another device
    URL: smb://WORKGROUP/BILLING/HPLaserjetP1008
    Name: HP laserhet p1008
    Location:
    Print using: choose a driver or print model
    so im stuck at finding the correct driver

  • Connecting HP990Cse via print sever in Windows 7 64bit

    I want to install the drivers for an HP990Cse printer which is connected through a printer server built into my WD Netcenter network drive. Windows 7 (64bit) can find the printer but not the driver. Also, this printer is not found in the list provided in Windows. It asks for the location of the driver files (browse button), however, I am unable to download any driver files from the HP website. All they have is a wizard to allow hookup via USB or instruct the user to simply hook the printer to Windows and let it provide the driver. I am not hooking up via USB, so I not sure what to do.
    When installing a Brother printer, I had no issue since I could download the driver files, put them in a folder and then point Windows to that folder. Where can I get the driver files for this printer or what procedure should I use to install this printer?
    Thanks,
    This question was solved.
    View Solution.

    I will answer this question myself for the benefit of anyone who may find themselves in this position. Following some advice I found on the Internet. I did the following:
    I installed the printer as a local printer on the USB port allowing Windows to provide the driver. It worked find plugged into a USB port.
    I then moved the printer back to the print server in the NetCenter.
    I then went into the printer driver on the ports tab and added a new port with the network path for the printer. For example \\printer_server_name\printers\DESKJET-990C.
    This did not work, however. So I went to the Network and Sharing Center and chose the option to View Computers and Devices which showed the print server. I double clicked on the print server which then displayed the connected printer. I double clicked on the printer to connect to it. I got a message saying that the driver could not be found. I clicked OK to install the driver. When the driver list appeared, I selected HP in the left column and guess what? The 990C printer driver and a bunch more HP printer drivers were listed. I selected the 990C and everything worked fine.
    I not sure if installing the printer locally caused Windows to populate the list with more HP drivers, but it seems as if it did because those drivers were not in the list before.

  • Lone Mac in a PC networked office -- can't connect to the printer!

    Hello
    I know this is probably an easy answer, but I'm faced with an office filled with colleagues who can't help me and the company's computer technician knows nothing about how to help me. I've had no problem connecting to the network as far as the internet connection (satellite to router). But when I've asked about the printer, so I don't have to walk down the hall to use it, the technician has replied:
    +The printer is connected to Mark’s computer. You will need to download the driver from HP for the printer and install it. I am not very familiar with MAC’s so I don’t know the process for installing network printers. If you can browse the network for Mark’s computer the shared printer will appear and you should be able to connect to it. If you can’t the only other option is to install a print server and connect the printer to the print server. You will then be able to connect to the printer directly through the network. The cost of a print server is $179. Let me know if Sam would like this installed. Currently Mark’s computer must be on in order for other users to connect to his printer.+
    First, I am not too swift when it comes to figuring these things out cognitively; I have modest success simply flying by the seat of my pants. In this case, I've no idea what to look for, or where, in order to install the network printer, though I've read the "I can't print to a network printer" section in Mac Help. I believe I'm connected to the network--I am accessing the internet through the network router--but perhaps I'm not. (???)
    And do I need to download a driver from HP? I don't see the model we use in the listing "printer browser" Lots of models to choose from, but not the HP Color Laser CM1015 MFP.
    Sometimes I simply feel like an idiot on these magic boxes, but I'd like to appear to be on top of things for my pc colleagues, rather than simply in the dark. I've even gotten a new Apple discussion id, since I can't seem to change my previous alias (which happens to be my full name!).
    Ugh! Paul

    I've got it configured now, although I didn't think that the driver was typically contained in 92 MB of software. Thanks for that tip, but now I'm still faced with the networking issue. My airport is connected to the router, and I've managed to see the printer and host pc, and have configured the printer with printer set-up utility. I see it as an optional printer when I go to print, but now the print job simply disappears from the printing list after a moment or two and I find it in the completed jobs section (though nothing has printed out). Should I try one of the gimp options? I'd rather not have to pay a couple of hundred for a printer server if there's another way. Of course, I can always walk it down the hall for each print job.... Hmmm.

Maybe you are looking for