Jump to content
United States - English

In Windows XP the Message 'An error has occurred while communicating with the scanning device' Displays When Scanning with a Network-Connected All-in-One

Give us feedback

This document:
  • » Was helpful
  • » Was not helpful
  • » Does not apply

Support details

Issue
In Windows XP, an error message displays on the computer: 'An error occurred while communicating with scanning device' . The error displays when you use the HP scanning software (HP Solution Center, HP Director, or the scan button on the product) with a network-connected All-in-One.
If you have Windows Vista, or Windows7, or if your products connects directly to the computer with a USB cable, use the following links:
Windows VistaNetwork connection Click here to go to instructions for your system . (c01973599) (in English).
Windows VistaUSB connection Click here to go to instructions for your system . (c01290511) (in English)
Windows7Network connection Click here to go to instructions for your system . (c01982140) (in English)
Windows7USB connection Click here to go to instructions for your system . (c01980854) (in English)
Windows XPUSB connection Click here to go to instructions for your system . (c00040499) (in English)
Before you begin troubleshooting
Make a copy: To make sure that the product hardware is functioning correctly, use the product to make a photocopy. If you cannot make a copy, this document will not help resolve the issue. Search the HP Web site for a document covering the error message that appears on the computer while copying.
Bookmark this page: Some of the following solutions require that the computer be restarted. Consider bookmarking this page in your Web browser, so that you can return to it after restarting the computer.
Read how to use these solutions: Try each of the following solutions in the order presented. After completing the steps for each solution, test the product. If the issue is resolved, you do not need to continue troubleshooting. If the product still does not work, go to the next solution.
NOTE: Workaround information: If you need to scan immediately, you can skip to the end of this page for workaround options .
Solution one: Select the correct All-in-One in HP Solution Center or HP Director
Follow these steps to make sure that the correct product is selected in the HP software that is installed on the computer (either HP Solution Center or HP Director).
NOTE: HP Solution Center and HP Director provide access to all the scan functions of your product, including setting up the scan button on the product.
  1. Click Start , click All Programs , and then click the HP folder.
  2. Depending on the software you have, click to open either HP Solution Center , or HP Director .
  3. Make sure that the correct product is selected. (You might have more than one HP product or duplicate instances of the product.)
    • HP Solution Center : Look at the product tabs at the top of the screen, or the icons on the left side of the screen.
    • HP Director : Click the Select Device drop-down list at the top of the screen.
    NOTE: If the product is installed both with a USB cable and over a network, the software might report duplicate products.
    If there is a duplicate instance of the product (indicated by the word Copy next to the product number), click the duplicate product with the highest copy number.
  4. Try scanning again.
NOTE: It is not necessary to remove duplicate instances to complete these troubleshooting steps or to scan successfully. However, for future reference, click here for more information on removing duplicate products (c00638463) (in English).
Solution two: Turn off, and then turn on the product, the computer, and the router
Follow these steps to reset the devices.
  1. Use the Power button ( ) to turn the product off.
  2. Shut the computer down, and then turn the router, switch, or access point off.
    NOTE: Depending on whether you are using a wired or wireless network, you might be using different networking devices to connect your product to the network.
  3. Turn the devices on again in the following order:
    1. Networking device (the router, switch, or access point)
    2. HP All-in-One
    3. Computer
  4. Try scanning again.
Solution three: Check the network connection
Follow these steps to make sure your product is connecting to your existing network:
  1. Print from a software program, such as Microsoft Word.
    • If you can print over the network, skip to Solution four to continue troubleshooting.
    • If you cannot print over the network, continue with the steps in this solution.
  2. Try running the HP Network Diagnostic Utility to check the status of your network connection. This utility gathers information that can help you diagnose network issues. Follow these steps to open a new window to download and run the Network Diagnostic utility:
    1. Right-click this link, Network Diagnostic Utility , and then click Open in New Window .
    2. Read the requirements and description of available features, click the Download only button, and then click Save to save the utility to your computer.
    3. Browse to the location where you saved the utility, and then double-click the USERHPNDU_2017.exe file to run it. If you get a firewall security alert, click Unblock, Accept, Continue, Yes, Allow, or Permit.
    4. When the Welcome page displays, click Run Network Printer Diagnostic . The network diagnostic wizard runs and displays a list of HP network printers found your network.
      • If the printer displays in the network printer list, click Check Connection to check the network connection status. The utility also checks whether the software necessary to communicate with the printer over the network is installed on the computer. If the software is not installed, search for the network installation document for your product and operating system.
      • If the printer does not display in the network printer list, click Not Listed , and then use the information provided to connect the printer to the network. For a wireless connection, the network diagnostic might also help get wireless settings such as the network name (SSID) and security key (WEP/WPA).
  3. Try scanning again.
Solution four: Check for critical updates, patches, firmware
If you did not install the HP Update program when you first installed the product, you might have missed notification of important updates to your software and firmware. Follow these steps to check your product page for updates that you can download.
  1. Open a new window to browse to the Select Software and Drivers page:
    1. Right-click this link, Select Software and Drivers , and then click Open in New Window .
    2. If prompted, type your product number. You might also need to click it in a list of similar products.
    3. Click your operating system.
      The Select Software and Drivers page opens.
  2. Look for "Critical " items listed in the Firmware , Patch , and Update sections of the page.
    You can click an item to read more about it before downloading.
  3. Click each "Critical" item that pertains to a communication issue, and then follow the on-screen instructions to download and install the item.
  4. Try scanning again.
Solution five: Configure the firewall to allow a connection with the All-in-One
Certain firewall settings can allow you to print over a network, but not scan. In order for the product to work correctly, you must unblock all HP programs in your firewall software and allow them to access the Internet.
NOTE: To find out which firewall program you have, place the cursor over the icons in the notification area of your computer desktop.
Figure 1: Notification area
Notification area on the desktop screen
Method one: Link to specific instructions to configure your firewall
Use this method if you see your firewall in the following table. If your firewall is not in the table, use "Method two: Unblock all HP programs and required Internet ports."
Right-click the link, and then click Open in New Window . Follow the instructions to configure the firewall to allow a connection to the product. Then try scanning again.
Firewall program icons and document links
Windows XP Firewall (c01545804) (in English)
Norton Internet Security (c01536437) (in English)
McAfee 9.0 (c01540962) (in English)
BlackICE (c01545724) (in English)
OutpostPro 6.0 (c01552315) (in English)
Trend Micro Internet Security Pro (c01539637) (in English)
ZoneAlarm Security Suite (c01539426) (in English)
Method two: Unblock all HP programs and required Internet ports
Use this method if your firewall is not in the preceding table.
Step one: Unblock all HP programs
  1. Open the C:\program files\HP\digital imaging\bin directory, and then locate the following files:
    hpoews01.exe
    hpofxm08.exe
    hposid01.exe
    hpqkygrp.exe
    hpqste08.exe
    hpqtra08.exe
    hposfx08.exe
    hpiscnapp.exe (for HP software v10.0 or later) OR

    hpqscnvw.exe (for HP software v9.0 or earlier)
  2. Open the C:\windows\system32 directory, and then locate the following files:
    hpzwiz01.exe
    hpznui01.exe
  3. Make a note of or copy the file path for each file listed. The file paths should resemble the example: C:\windows\system32\hpzipm12.exe .
  4. In the firewall software, make sure that each of these programs displays in the list of trusted or allowed programs. Add any missing programs to the list manually.
    NOTE: The name of the list might vary, depending on the firewall program.
  5. Make sure you allow each of the HP programs to access the Internet freely. This is necessary if the firewall software has different trust levels or requires specific permission for a program to access the Internet.
  6. Click OK or Save to save the changes to the trusted or allowed program list.
Step two: Unblock the Internet ports
This step describes how to unblock Internet ports by creating rules in the firewall software. Each rule opens one port.
The HP software uses the following ports. Each port name consists of a protocol (either UDP or TCP), a number, and a connection type (either inbound or outbound). Your computer's firewall uses each piece of this information in creating the rule to open the port.
UDP 427 inboundTCP 139 outbound
UDP 427 outboundTCP 9220 outbound
UDP 161 outboundTCP 9500 outbound
UDP 139 outboundTCP 9290 outbound
  1. In the relevant network or rules section of the firewall software, create a new rule for each of these ports.
  2. Make sure that each rule has a descriptive name. For example, unblock UDP 137 inbound is a good name for the rule to unblock the UDP 137 inbound port.
    • If prompted to select the type of rule, select All IP Addresses .
    • If prompted to select the type of IP address, select IPv4 and IPv6 .
  3. When you have created each rule, click OK or Save to save these changes.
  4. After the firewall configuration is complete, try scanning again.
Solution six: Contact HP
If you have completed all the troubleshooting steps in this document, contact HP to troubleshoot the Windows registry and product hardware.
Workaround options
Two workaround options are available to you if you need to scan immediately:
Option 1: Scan without HP Imaging software:
Option 2: Scan with the Embedded Web Server (EWS):
Option 1: Scan without HP imaging software
Windows XP provides a basic set of scanning drivers, also referred to as Windows Image Aquisition (WIA) drivers, which you can use as an alternative to scan a document when you cannot scan using the HP drivers.
To scan a document using Paint in Windows XP , follow these steps:
NOTE: Before you begin, make sure that the product is connected to your computer.
  1. Click Start , point to All Programs , point to Accessories , and then click Paint .
  2. Click File , and then click From Scanner or Camera .
  3. Make any desired setting changes.
  4. Click Scan .
Option two: Scan with the Embedded Web Server (EWS)
The product includes an Embedded Web Server (EWS) that connects to the network. To use this option, your printer must be on the network, and you need to know your product IP address. Following are two ways you can find the IP address:
  • Print a Network Diagnostic Page. (See your product documentation for instructions to print the page.)
  • Run the HP Network Diagnostic Utility explained in Solution three. On the Welcome page of the utility, click Show Advanced Tools .
Follow these steps to scan with the EWS:
  1. On the computer, open your Web browser.
  2. Type the product IP address into the address bar of the Web browser, and then press Enter . The EWS opens.
  3. On the Information tab in the left navigation pane, select Webscan . The Webscan screen opens.
  4. Click Preview , click Scan , and then follow the on-screen instructions to scan from the EWS.
    NOTE: The name of the Scan button might vary, depending on the version of the EWS that came with the product.
    Figure 2: EWS Webscan
    Webscan option in the Embedded Web Server screen
    1 - Preview button
    2 - Scan button
NOTE: One or more of the links above will take you outside the Hewlett-Packard Web site. HP does not control and is not responsible for information outside of the HP Web site.