About jdbc and networking

hi, i found this error while im generating a report
for my system, "Aging of Accounts Receivables"
hope someone might give me a hint to what should i do.
here's my StackTrace:
***Exception:
org.postgresql.util.PSQLException: The connection attempt failed because Exception: java.net.BindException: Address already in use: connect
Stack Trace:
java.net.BindException: Address already in use: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:179)
at org.postgresql.core.PGStream.<init>(PGStream.java:47)
at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:197)
at org.postgresql.Driver.connect(Driver.java:139)
org.postgresql.util.PSQLException: The connection attempt failed because Exception: java.net.BindException: Address already in use: connect
Stack Trace:
java.net.BindException: Address already in use: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:179)
at org.postgresql.core.PGStream.<init>(PGStream.java:47)
at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:197)
at org.postgresql.Driver.connect(Driver.java:139)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at org.postgresql.jdbc2.optional.BaseDataSource.getConnection(BaseDataSource.java:72)
at org.postgresql.jdbc2.optional.BaseDataSource.getConnection(BaseDataSource.java:55)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at org.postgresql.jdbc2.optional.BaseDataSource.getConnection(BaseDataSource.java:72)
at org.postgresql.jdbc2.optional.BaseDataSource.getConnection(BaseDataSource.java:55)
at org.postgresql.jdbc3.Jdbc3ConnectionPool.getPooledConnection(Jdbc3ConnectionPool.java:39)
at org.postgresql.jdbc3.Jdbc3ConnectionPool.getPooledConnection(Jdbc3ConnectionPool.java:39)
at org.postgresql.jdbc2.optional.PoolingDataSource.getPooledConnection(PoolingDataSource.java:406)
at org.postgresql.jdbc2.optional.PoolingDataSource.getConnection(PoolingDataSource.java:338)
at csfwdbillingmodules.dbConnect.<init>(dbConnect.java:73)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.processAccountAR(frmAgingOfAccounts.java:794)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.genDetailedReport(frmAgingOfAccounts.java:1102)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.doInBackground(frmAgingOfAccounts.java:406)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.doInBackground(frmAgingOfAccounts.java:400)
at javax.swing.SwingWorker$1.call(SwingWorker.java:279)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at javax.swing.SwingWorker.run(SwingWorker.java:319)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
End of Stack Trace
at org.postgresql.jdbc2.optional.PoolingDataSource.getPooledConnection(PoolingDataSource.java:406)
at org.postgresql.jdbc2.optional.PoolingDataSource.getConnection(PoolingDataSource.java:338)
at csfwdbillingmodules.dbConnect.<init>(dbConnect.java:73)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.processAccountAR(frmAgingOfAccounts.java:794)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.genDetailedReport(frmAgingOfAccounts.java:1102)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.doInBackground(frmAgingOfAccounts.java:406)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.doInBackground(frmAgingOfAccounts.java:400)
at javax.swing.SwingWorker$1.call(SwingWorker.java:279)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:208)
at org.postgresql.Driver.connect(Driver.java:139)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at org.postgresql.jdbc2.optional.BaseDataSource.getConnection(BaseDataSource.java:72)
at org.postgresql.jdbc2.optional.BaseDataSource.getConnection(BaseDataSource.java:55)
at org.postgresql.jdbc3.Jdbc3ConnectionPool.getPooledConnection(Jdbc3ConnectionPool.java:39)
at org.postgresql.jdbc2.optional.PoolingDataSource.getPooledConnection(PoolingDataSource.java:406)
at org.postgresql.jdbc2.optional.PoolingDataSource.getConnection(PoolingDataSource.java:338)
at csfwdbillingmodules.dbConnect.<init>(dbConnect.java:73)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.processAccountAR(frmAgingOfAccounts.java:794)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.genDetailedReport(frmAgingOfAccounts.java:1102)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.doInBackground(frmAgingOfAccounts.java:406)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.doInBackground(frmAgingOfAccounts.java:400)
at javax.swing.SwingWorker$1.call(SwingWorker.java:279)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at javax.swing.SwingWorker.run(SwingWorker.java:319)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at csfwdbillingmodules.dbConnect.query(dbConnect.java:96)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.processAccountAR(frmAgingOfAccounts.java:798)
at csfwdbillingmodules.frmAgingOfAccounts$genAgingOfAccounts.genDetailedReport(frmAgingOfAccounts.java:1102)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at javax.swing.SwingWorker.run(SwingWorker.java:319)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
End of Stack Trace
here's my dbConnect.class:
* dbConnect.java
* Created on November 14, 2006, 5:06 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
* @author darkoasis
package csfwdbillingmodules;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.SocketException;
import java.net.SocketImpl;
import java.sql.*; // All we need for JDBC
import javax.naming.NamingException;
import org.postgresql.jdbc3.Jdbc3PoolingDataSource;
public class dbConnect
extends java.lang.Object
private Socket socket;
private SocketImpl socketImpl;
private int refPosition = 0;
private Jdbc3PoolingDataSource source = new Jdbc3PoolingDataSource();
private DriverManager drvMgr;
private Connection db = null; // A connection to the database
private Statement sql; // Our statement to run queries with
private ResultSet results; // A result container
private DatabaseMetaData dbmd; // This is basically info the driver delivers
// about the DB it just connected to. I use
// it to get the DB version to confirm the
// connection in this example.
/** Creates a new instance of dbConnect */
public dbConnect()
try
this.source.setServerName("10.10.10.10");
this.source.setDatabaseName("myDB");
this.source.setUser("xxxx");
this.source.setPassword("xxxx");
this.db = this.source.getConnection();
this.socket = new Socket();
dbmd = this.db.getMetaData(); //get MetaData to confirm connection
sql = this.db.createStatement(); //create a statement that we can use later
catch (Exception ex)
System.out.println("***Exception:\n"+ex);
ex.printStackTrace();
public ResultSet query(String strSQL)
throws SQLException
this.results = this.sql.executeQuery(strSQL);
return this.results;
public void update(String strSQL)
throws SQLException
this.sql.executeUpdate(strSQL);
public void close()
throws Exception
this.db.close();
this.socket.close();
this.source.close();
public boolean isClosed()
throws SQLException
return this.db.isClosed();
i ran into some forums and found this:
Hi Graham
I'm making a bit of progress. I found a website that suggested the following
This is a problem of the used sockets with Windows NT. You can request the active sockets with the command netstat. The problem is a function of:
MaxUserPort (default 5000)
KeepAliveTime (default 120)
it suggested the workaround was connection pooling
I have run netstat to look at the number of connections when the problem occurs and waited for the timeout to reset the os back to the minimum and on each occasion my report has run
Does this sound logical?
If so
do you have any examples on connection pooling
it seems that even if i have closed my database connection it still doesn't free my port that was used, that's why i get this error
i am looking for a way to close my db connection and free its socket or port used at the same time, hope you can help,
thanks in advance

Let me modestly point you at mine: http://www.telekinesis.com.au/wipv3_6/FundamentalNetworkingInJava.A21

Similar Messages

  • A very surprise problem about JDBC and connection pool

    I occur a very problem about JDBC and connection pool on Weblogic Platform
    8.1.
    There is a table in Oracle
    Table
    Name: t1
    id varchar2(5);
    content clob;
    id is primary key.
    If I use a connection pool to connect to Oracle,like following program:
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("cgOracleDataSource");
    con = ds.getConnection();
    then following program will throw a ClassCastException
    String sql = "select content from t1 where id = ?";
    PreparedStatement pst = con.prepareStatement(sql);
    pst.setString(1,"001");
    oracle.sql.CLOB clob = (oralce.sql.CLOB)rs.getClob("content") //this
    statement will throw ClassCastException
    but if I use JNDI to connect to Oracle,like following program, then those
    program above is ok
    private String dbdriver="oracle.jdbc.driver.OracleDriver";
    private String dburl="jdbc:oracle:thin:@192.168.7.148:1521:ep";
    private String username="ep";
    private String password="epuser";
    Class.forName(dbdriver);
    conn = DriverManager.getConnection(dburl, username, password);
    conn.setAutoCommit(false);
    On the contrary, if I use JNDI to connect to Oracle, following program will
    throw ClassCastException
    weblogic.jdbc.vendor.oracle.OracleThinClob clob =
    (weblogic.jdbc.vendor.oracle.OracleThinClob)rs.getClob("content");
    but it is fine if I use connection pool to connect to Oracle.
    I am confused this problem, who can tell me why?
    Daniel

    When you are getting connection using datasource lookup from weblogic
    connection pool, this connection is internally wrapped and hence you have to
    cast it to weblogic.jdbc.vendor.oracle.OracleThinClob which you do and so it
    works.
    But when you get connection by loading driver straight, you are getting naked
    oracle connection. In this case when you cast it to oracle.sql.Clob it works,
    as you have seen in your test case.
    I hope this explains what is going on with your code.
    Thanks,
    Mitesh
    Daniel wrote:
    I occur a very problem about JDBC and connection pool on Weblogic Platform
    8.1.
    There is a table in Oracle
    Table
    Name: t1
    id varchar2(5);
    content clob;
    id is primary key.
    If I use a connection pool to connect to Oracle,like following program:
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("cgOracleDataSource");
    con = ds.getConnection();
    then following program will throw a ClassCastException
    String sql = "select content from t1 where id = ?";
    PreparedStatement pst = con.prepareStatement(sql);
    pst.setString(1,"001");
    oracle.sql.CLOB clob = (oralce.sql.CLOB)rs.getClob("content") //this
    statement will throw ClassCastException
    but if I use JNDI to connect to Oracle,like following program, then those
    program above is ok
    private String dbdriver="oracle.jdbc.driver.OracleDriver";
    private String dburl="jdbc:oracle:thin:@192.168.7.148:1521:ep";
    private String username="ep";
    private String password="epuser";
    Class.forName(dbdriver);
    conn = DriverManager.getConnection(dburl, username, password);
    conn.setAutoCommit(false);
    On the contrary, if I use JNDI to connect to Oracle, following program will
    throw ClassCastException
    weblogic.jdbc.vendor.oracle.OracleThinClob clob =
    (weblogic.jdbc.vendor.oracle.OracleThinClob)rs.getClob("content");
    but it is fine if I use connection pool to connect to Oracle.
    I am confused this problem, who can tell me why?
    Daniel

  • A question about JDBC and MySQL

    hello dear friends,ask a question:
    if in MySQL database, i have defined a clumon as TEXT data type.
    when i use JDBC, i use which kind of java data type to hold TEXT,
    i mean which getXXX() method i should use.
    is it possible i just use getObject() and cast it to a binarystream??
    thanks in advanced.

    use this:
    declare it 1st
    String x ="";
    then u can now get the value of the field...
    x = getString("<fieldName>");is there length limitation?
    for example, i want store a String which is got from a JTextArea, i also treat it as String and insert into the column with TEXT datatype like
    insert table_name (text_column) values( string_1)
    this works in JSP, should work in JAVA too...
    hope i helped... ^_^

  • A question about Routers and network cards

    I have a question, Can Hardware confict with internet speed problems with the routers like one having a gigabit etherenet network card and 1/100 intel etherent card?

    Ethernet components are generally compatible across brand names, and speeds.  So you can connect gigabit cards to 10/100 networks.  You can connect 10/100 cards to gigabit networks.
    When you mix speeds, you will be limited to the fastest speed that all components can do, so if you connect a gigabit card to a 10/100 network, you will be limited to a 100 Mbps connection.

  • About JDBC and JNDI

    in my Program i wrote :
    public class Connect {
    String stat = "Not Connected";
    public void init()
    try {
    Context ctx= new InitialContext();
         if(ctx == null)
              throw new Exception("no Context");
              DataSource ds =(DataSource)ctx.lookup
    ("java:comp/env/jdbc/BooksDB");
         if(ds != null)
                             Connection conn= ds.getConnection();
              if (conn !=null)
    So, when i run this program i get the following error message:
    unreachable statement:
    DataSource ds =(DataSource)ctx.lookup
    ("java:comp/env/jdbc/BooksDB");
    Can anybody pls tell me why i am getting this error and how can i solve it.

         throw new Exception("no Context");
    rce ds =(DataSource)ctx.lookup
    "java:comp/env/jdbc/BooksDB");When you throw the excpetion, the line following will be bypassed so it can never be reached!

  • About jdbc and axis

    hello..!
    I want to learn webservices using java and MySql. can anybody tell me how can I set up jdbc connection in my w/s? I am using tomcat and axis.
    Thank you.
    .Mohit

    Axis and JDBC aren't really related technologies. Learn how to write a JDBC program. Learn how to write an Axis program. Er... that's it.

  • Question about JDBC and Oracle 10g AL32UTF8

    Hey all,
    Currently I have a Java program that uses lib: ojdbc14.zip. It works fine for our Oracle 10g database, but when we converted our character set to AL32UTF8, our program seems to have stopped working properly. For instance, I grab a count(*), to see how many rows an ID has in a table. Then I take that list and display and count(*) that are greater than 0. Well, my first getString works properly to generate the select count(*) statements for all the tables in the database. But then when I execute those select count(*) I can grab out the number greater than 0. That's column 1. Then the owner name is displayed in column 2. and the table name is displayed in column 3. When I do a getString(2) we only get the first letter (sometimes) of the owner of the table. Same with the table name.
    For instance, before AL32UTF8
    getString(2): SCOTT
    getString(3): PEOPLE
    After
    getString(2): S
    getString(3): P
    Now to open my connection I use:
    static Connection conn;
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(connection_string, username, password);
    And to create query I use:
    Statement query_1 = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    Any help will be greatly appreciated. Thanks
    Sincerely,
    Mel

    orkun wrote:
    I was wondering whether it was a correct way :
    -retrieving data with resultset and putting them to an arraylist, then getting to jsf datatable.Your question/problem statement is unclear, but just lookup the DAO pattern.
    Is there any better way I can speed up retrieving data from databse ?Performance is a matter of good code and datamodel and decent hardware.

  • Question about jdbc and jsf datatable

    hello
    I was wondering whether it was a correct way :
    -retrieving data with resultset and putting them to an arraylist, then getting to jsf datatable.
    or
    Is there any better way I can speed up retrieving data from databse ?
    regards

    orkun wrote:
    I was wondering whether it was a correct way :
    -retrieving data with resultset and putting them to an arraylist, then getting to jsf datatable.Your question/problem statement is unclear, but just lookup the DAO pattern.
    Is there any better way I can speed up retrieving data from databse ?Performance is a matter of good code and datamodel and decent hardware.

  • Which tutorials may you suggest for JDBC and servlets?

    Hello, i would to learn about JDBC and servlets.
    May you please suggest me a good tutorial(e.g.post me a link) in order to study for JDBC and servlets?
    e.g. How to make a servlet etc.
    Thanks, in advance!

    I agree with PhHein, it's best to learn one technology and then the other. (Just my two cents, but start with JDBC from a simple standalone application, then when that is working, try to tackle Servlets, since you will need to also learn how to get them working in a container like Tomcat).
    Here is a tutorial that has both concepts in it at the same time. Site is down now, but is usually up. http://www.roseindia.net/jdbc/jdbcconnectivity.shtml
    Also, you will eventually want to download a J2EE container such as Tomcat or Jboss.
    - Saish

  • File, Send link doesn't open a new email. Using Firefox 11.0. Outlook 2010 is the Mailto default and W7 default email program. On the About:config page network.protocol-handler.external.mailto is set to regular font (not bold) "default Boolean true".

    File, Send link doesn’t open a new email. Running Firefox 11.0. Outlook 2010 is the Mailto default and the W7 default email program. On the About:config page, network.protocol-handler.external.mailto is set to regular font (not bold) “default Boolean true”.

    I assume you have tried toggling the setting in Firefox between Outlook and, say, Gmail:
    orange Firefox button ''or'' classic Tools menu > Options > Applications
    In the search box, type or paste '''mailto''' and pause for the list to filter.
    Change the setting and OK to save it, then return to the dialog, change back, and OK again.
    You also might want to toggle the setting at the OS level between Microsoft Outlook and the native Windows Mail client in a similar fashion. In Windows XP you could use IE's Options dialog, Programs tab, for this, but I'm not sure in Windows 7.
    Since one possibility is a problem in your Firefox settings (including the possibility of interfering add-ons), and another is a problem at the Windows level (e.g., Registry settings), it would be useful to try to identify which one it is. One quick way to distinguish is to create a new Firefox profile. It will start up with all factory settings. You can switch back to your existing profile after testing.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    After closing Firefox, start up again in the Profile Manager as described in this article: [http://support.mozilla.com/kb/Managing+profiles Managing profiles].
    With the new profile, can Firefox successfully create a message in Outlook?

  • So my airport extreme recently had some nat/dns issue and in the airport utility displayed a warning about it and to correct it. I wasn't sure what to do so i pressed the resolve icon and now my guest network is not working.

    So my airport extreme recently had some nat/dns issue and in the airport utility displayed a warning about it and to correct it. I wasn't sure what to do so i pressed the resolve icon and now my guest network is not working.

    Anytime you change networking hardware, it is always a good idea to perform a complete power recycle of your networking components.
    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    Disconnect the AirPort base station from the Internet broadband modem.
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Reconnect the AirPort base station to the Internet broadband modem. For the Extreme and Time Capsule, be sure to connect the cable to the base station's WAN (circle-of-dots) port.
    Power-up the modem; wait at least 10-15 minutes to allow it adequate time to initialize.
    Power-up the AirPort base station; wait at least 5-10 minutes. Note: The AirPort's status light may continue to flash amber after it has intialized. That is because, there may be some additional configuration items necessary, like setting up wireless security, before the overall setup is completed to get a green status.
    Power-up your computer(s).
    In this basic configuration, the AirPort base station will broadcast an unsecured wireless network with a Network Name (SSID) of Apple Network NNNNNN. Network clients, connected to the base station either by wire or wireless, should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options. Please post back your results.

  • We need IOS 4.0 for the ipod touch 1st generation not everybody have money to get a new version of ipod touch to used the most important social networks ... please think about it and i would grateful if i can use my old ipod touch .. Thanks :)

    We need IOS 4.0 for the ipod touch 1st generation not everybody have money to get a new version of ipod touch to used the most important social networks ... please think about it and i would grateful if i can use my old ipod touch .. Thanks

    Sorry, the fellow users in the forum hae no way of making that happen. The maximum iOS for a 1st generation unit is 3.1.3
    Stedman.

  • I have a Photosmart C7280 and have question s about making a network decision.

    I currently have two desktops connected to a wireless router via ethernet cables.  They are connected to a single (non-HP) printer with USB cables through a USB switch.  Two laptops connect to the router wirelessly.  I could replicate the existing configuration with the C7280, but the idea of a network in which the laptops could participate is very appealing.  One of the laptops is running Windows version 7, the other computers are running Linux.  If I go for an ethernet network, will the laptops be able to connect to the printer through the router?  If I go for a wireless network, will the desktops be able to connect to the printer through their ethernet cables?  A couple of USB wirelss adapters are a possibility.
    This question was solved.
    View Solution.

    I understand that you have some questions regarding networking with your printer.
    Yes, wired network connections will have no problem connecting to a wifi connected printer.  Most routers bridge wired and wireless networks to work as a single network.  There are a few routers that separate wired and wireless networks, but these are primarily enterprise grade routers and networking equipment.
    A wired desktop will be able to print to a wireless printer as long as it is connected through the same router.  Vice versa, a wireless computer can print to an Ethernet connected printer as long as it is the same router. 
    I recommend using a network setup for the printer, if possible, to avoid printing issues.  USB hubs have been known to cause some printing problems, though this is not always the case.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Wireless and network printing transcript for Meet the Experts

    On March 16th, HP hosted its first online chat event on wireless and network printing. Below is a transcript of that session.
    I am in the process of planning the next chat event. I would love to hear what topics would interest you, what day of the week and time is best for you, and if you think an hour is too long.
    So, if you get a minute, please let me know.
    Here's the transcript:
    SiobhanF-HP: Welcome! Cameron, Craig, David, and Jim are ready to tackle your questions.
    SiobhanF-HP: Just to remind you if you want to ask a question, you must be a member of the HP Support Forums. If you want to join, go here https://passport2.hp.com/hppcf/createuser.do
    nc256: Do I need a wireless router to hook up my wireless printer?
    CameronL-HP: No, but most people will want to do it this way. You can use a feature called an ad hoc connection to avoid using a router, but it is only covered under an older standard that is slower and less secure. Also, without something to route traffic between the local network and the internet, you cannot get an internet connection. Using a wireless router makes setting up a wireless network easier, and it will generally make the network work better too.
    jest1: I've seen some hardware in stores for a "print server" hardware device that attaches to a network. Is this something that I need in order to run a printer over a network?
    CraigB--HP: Not if you have a printer that has a network connection built in. Many models of HP computers are ready to be connected directly to your wired or wireless network.
    katiepage: How can I print when I am using a VPN?
    DavidH-HP: VPN connections generally hide the rest of your home network to increase the security of the VPN connection. A printer on the network isn’t a security threat but the VPN doesn’t know that. It just hides everything just to be sure. That means that when a VPN is active you need some way to connect to the printer other than your home network. Bluetooth, USB, and even printing to a thumb drive and plugging that into the printer are all ways of getting your print job to the printer that don’t go through your home network.
    SiobhanF-HP: If you have specific product questions, the more information you give us the better we will be able to help you. Getting your exact model number; any error messages; a description of your wireless network including what kind of security you have, what wireless-devices are connected to your network, and your IP address will go a long way to helping us answer your question.
    MelissaP: Why would I want a wireless printer?
    CraigB--HP: The main advantage of a wireless printer is the ability to place the printer somewhere in your home or office even if this is not near your router or computer.
    Deltan: What is the maximum distance I can have between my router and my printer?
    CameronL-HP: It does depend on your environment. Without interference about 25 feet. Walls and floors and other objects can reduce this. The types of walls are important. For example, mirrors and outdoor walls will greatly reduce the indoor range.
     jest1: Is there a preferred wireless router type or brand for wireless printing compatibility? We are using a Linksys 802.11g router in my home.
     JimB-HP: In general, any wireless-router from a name brand manufacturer that has been Wi-Fi certified is compatible with our printers (look for the Wi-Fi logo). We use Linksys in our lab with great success.
     nc256: Are there any digital cameras that can send directly to an HP wireless printer for photo printing?
     DavidH-HP: Many printers support a feature called Pictbridge. If the camera and printer both supports this feature, the camera can be plugged directly into the printer to print photos. Or are you asking about printing over a network connection?
     KevinW: I keep hearing that you shouldn’t use default settings for a network. Why?
     CraigB--HP: There are three reasons not use default settings: First, wireless-routers do not have any wireless security enabled by default. Second, you will be using a common network name in which case you may connect accidentally to your neighbor’s network. Third, your wireless-router is accessible by inadvertent guests who may change the configuration of your wireless-router without your knowledge or use your internet connection without your permission.
    Bodie08: I have an HP Lan attached printer and Windows XP on my home network. Is there a known setting (Firewall/port/other) or patch to address the issue of hpqtra08.exe hanging on Windows XP Shutdown? A number of us in the forum have identified this issue. Thanks!
    DavidH-HP: This problem has been seen in the past but there were attempts to address it. Have you checked to see if there is a later release of software available on the web? (hp.com)
    ZhuLee3: How old is wireless printing technology? I noticed all the experts have around 20 years of experience with it, was there wireless 20 years ago?
    JimB-HP: Wireless printing first appeared with the introduction of the 802.11 standard in late 1990's. HP has been making wireless printers since 2003.
    lpeterson123: What makes wireless so flaky at times?
    CameronL-HP: There are lots of reasons. Wireless signals are affected by distance, walls, metal objects, and other wireless devices like cordless phones. However, most of the problems seem to be from how the network or how security software is configured, and these can also cause things to fail only occasionally or in certain situations. Having a good wireless connection between a PC and printer involves several hardware devices and lots of software made by different companies that all have to work together; if something is not quite right in any of these things then the whole solution looks flaky.
    Bowman16: I use a Mac, are there any features that would not work if I was to set it up for wireless use
    DavidH-HP: All the features will work on a Mac if you install the full HP software solution.
    jest1: Thanks for the answer on the router question. The next question, then, is to ask what would be a recommended consumer-grade wireless-enabled printer (or series) just so I can start my research.
    JimB-HP: Any of our Photosmart or Officejet wireless printers will work with Wi-Fi certified wireless-routers. Our price points really have more to do with how much printing you do. In general, our more expensive printers cost less per page than our less expensive models.
    Bodie08: Why would I choose "spooling" on my PC over "direct connect”?
    CraigB--HP: In general, spooling allows you to use your program sooner than printing directly.
    ZhuLee3: Jim: What is it like to be an "HP Printing Expert"? What kind of stuff do you get to work on, on a day to day basis?
    JimB-HP: I really like my job -- I've always been a radio enthusiast so working on 802.11 technology is really a dream job for me. I'm also fortunate to work with a great team here in Vancouver, WA. More importantly, I like designing equipment that people use in their everyday lives.
    TEACHER1: Recently I changed routers, now I am unable to print wirelessly, even though the SES and wireless network light are steady on my Deskjet 6980 printer. What is the solution? Thanks.
    DavidH-HP: The wireless light indicates that the radio is on but does not indicate that the printer is connected to the network. First check that the printer is connected to the network by printing a network configuration page from the printer.
    AgentRed: I get my internet with a Verizon wireless broadband card. Someone told me that wouldn't work with a wireless printer. Is that true?
    CameronL-HP: Our wireless printers use the 802.11 b, g or n standard which is not compatible with the wireless cellular standard. It would be like trying to connect to a wireless network using Bluetooth. They are different wireless technologies.
    DavidH-HP: Regarding the Verizon card, it is true that you cannot connect the printer over the Verizon connection, but as long as your laptop has Wife you can print to the printer over WiFi at the same time that the Verizon connection is active. This should not be a problem.
    jest1: Is there a "minimum" internet connection that is recommended for wireless printing? We live a bit far from the DSL CO so our connection is sometimes flaky. I would guess that incoming speed shouldn't affect my local wireless LAN but I want to ask it anyway
    CameronL-HP: There are 2 parts to your home network. 1 is your wireless router which manages your local network equipment, then your network connection to the world wide web which your DSL provider gives you. The connection speed of your local network is not affected by your internet connection speed.
    Bowman16: Are any HP printers 802.11n? I do not want to add an 802.11b,g to my network and cause it to slow down.
    JimB-HP: Currently, our printers comply with the 802.11g standard. We are investigation the emerging 802.11n standard.
    ZhuLee3: Will there be a transcript of all the questions and answers from this chat available for viewing after the session? I think I missed some questions at the start.
    SiobhanF-HP: The chat event begins when you joined. Sorry that you can't see what was said before you joined. I hope to have transcript posted tomorrow or on Wednesday at the latest.
    nc256: Where is the future of printers headed? Does HP have any interesting plans with printing technology? And what’s your opinion on whether or not color laser printing will ever approachthe photo realism of ink jet color?
    JimB-HP: The future of HP printing will be characterized by wireless connectivity to not only computers but to mobile internet devices. In fact, as mobile devices become smaller (think phone or netbooks), the need to print from your mobile device might become more relevant.
    jest1: Am I able to print from my iphone to a wireless printer?
    CraigB--HP: You can print photos from your iPhone to HP wireless printers and it works great in my experience. Go to http://www.hp.com/go/iprintphoto to get the details.
    TEACHER1: Thank you. I printed a page. It shows that wireless is disconnected.
    DavidH-HP: Then you just need to input the wireless settings from your new router into the printer. If your printer does not let you input the settings from the front panel, you can use the CD that came with the printer or downloaded from hp.com to configure the printer again ( look for the option to "add a device" ).
    ZhuLee3: Question about security... if I get a wireless printer, what’s to prevent other people within range of my printer, from adding it and printing documents? How is this configured on the actual printer?
    JimB-HP: The simplest way to secure your printer is to enable WPA-PSK security for your wireless network and to use a security pass-phrase that is at least 12 characters long. This configuration is very safe from intruders for the foreseeable future.
    CameronL-HP: It' is also a good idea to use a unique network name, also called an SSID.
    carolj: I have a photosmart C7180 and I have it hooked up to my laptop (windows vista) when the setup completed the printer was put in networking instead of printers and I cannot access it or move it out of there. What do you suggest?
    CraigB--HP: You might need to uninstall and reinstall. Before doing this, make sure your get the latest driver from the HP support at: http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?product=1153754&lc=en&cc=us&dlc=en&lang=en&cc=us This is also where you can get a copy of the instruction book.
    wizll: Hi, I haven't done much research in wireless printing, but I'm interested as I currently have my printer set up the old fashioned way where it's connected to a networked PC, but if the PC is off I can no longer print, which is obviously inconvenient. Do hp wireless printers have a web gui you can connect to once it's on the home network, or is it simply all done from the printer's interface. I've seen some old wired network printers that only use the printer's ui and that seems like a clunky use.
    DavidH-HP: Yes, the HP printers which have networking built-in have what we call an "embedded" web server which allow you to configure settings, check status, and have many other features; on some models you can even scan using the embedded web server.
    nc256: Jim: Will color laser printing ever reach ink jet quality for photos?
    JimB-HP: While never is a long time, inkjet printers will, for the near future, output higher quality photos.
    katiepage: If I'm at home, connected to my office network via VPN, can I access my office networked printers?
    CraigB--HP: Yes, when you are connected to the office VPN, you can print to your office printers. However, you will not be able to print to your home networked printers while you are connected to the VPN.
    jest1: If a friend comes over to my house with their laptop and needs to print something, are they able to do this just by authenticating with my wireless LAN (assuming I have a wireless printer set up)?
    CraigB--HP: In addition to authenticating to your network, you friend will also need to install the printer driver for your printer.
    jpszambelan: Is there a wireless USB device of some kind I can connect to my printer if there is no network connection already built in?
    JimB-HP: HP sells an accessory that adds Wi-Fi capability to your USB printer (see http://www.shopping.hp.com/product/printer/inkjet/wireless/4/accessories/Q6236A%2523A2L) Also, many higher-end wireless-routers allows USB printers to be connected to them to allow sharing of the printer from the network. Note that this solution often limits you to just printing and not scanning from the network.
    rockwoodchev: It seems that my computer can find my printer, but my printer can't find the computer, so that "Scan to computer" won't work. What do I need to do in order to fix that?
    DavidH-HP: This can be blocked by security software running on the PC (such as a personal firewall). Make sure that your firewall is configured to allow communication on your local network. You can also unblock specific ports, but the easiest way is often just to allow communication on the local home network. The specific setting varies from firewall to firewall.
    SiobhanF-HP: We are nearing the end of our chat session. We only have time for 3 more questions. If we did not get to your question, please post it on the Networking and Wireless board in the Printers and All-in-Ones forum. http://h30434.www3.hp.com/psg/board?board.id=Networking
    SSPatrick: Is it possible to print wirelessly to the same HP printer using both a PC and a Mac?
    JimB-HP: Yes -- I do this in my home. I have both Macs and PCs on my network without any trouble.
    Bowman16: Any plans to do this again?
    SiobhanF-HP: Yes we are.
    ZhuLee3: Do all of the experts hang out on the HP community? Will we see you posting there after this?
    DavidH-HP: Oh yes, whenever time permits. In addition to trying to help people, I learn things too.
    JimB-HP: I'm known as Wi-Fi-Guy on the support forums. I hang out there often helping where I can. It helps me be a better designer.
    CraigB--HP: I monitor the forums looking for problems to take back to the development lab for investigation. To date, I have only posted one reply.
    CameronL-HP: I haven't been involved in the past but expect to be more involved in the future.
    SiobhanF-HP: We only have time for one more question. If we did not get to your question, please post it on the Networking and Wireless board in the Printers and All-in-Ones forum. http://h30434.www3.hp.com/psg/board?board.id=Networking
    ZhuLee3: Thanks for setting this up!
    SiobhanF-HP: The transcript will be posted on http://h30434.www3.hp.com/psg/board?board.id=Networking
    TEACHER1: Thank you all for conducting this session !!!!
    jest1: Is there an OS limitation to print wirelessly?
    JimB-HP: All the OS versions supported by the printer as supported wirelessly. In general, we are compatible with Macs, Windows and Linux.
    SiobhanF-HP: We are ending the chat event. Thank you for coming. We hope you found it worthwhile. I will be posting a transcript of the event in the Networking and Wireless board in the Printers and All-in-Ones forum. We will be hosting future Meet the Experts chat sessions on a variety of topics, so please tell us what you thought of the event and how it could be improved. http://h30434.www3.hp.com/psg/board/message?board.id=Feedback&thread.id=525
    Live Forum Closed
    Message Edited by timhsu on 03-18-2009 05:39 PM
    Message Edited by timhsu on 03-18-2009 05:43 PM
    I work for HP, supporting the HP Experts who volunteer their time and technical knowledge to help others.

    I expected this to be released quite earlier. But now that it's in process, I'll wait patiently.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • IPhone 4 and network extender troubles

    I live in an area where I need a network extender to receive a signal.  All has worked perfectly fine in the last 4 years I've been with Verizon, until about 4 weeks ago when my daughter was trying to send me pictures that I never received.  I then noticed a picture I had sent her didn't go through either. I'm usually connected to wifi, but when I'm not and try to access the internet it says "could not activate cellular date network".   I have tried every suggestion I could find on the internet from other people who have had this issue with no luck, and I do mean everything from toggling off and on this and that, to taking my phone back to factory settings, which by the way, even with no back up and just adding one picture and one contact this issue exists.  When I'm in a 3G area I have cellular data and the phone works fine, including being able to send and receive pictures and being able to access the internet, so I have no reason to believe it's the phone or the settings.  I'm thinking it has something to do with the network extender not playing nice with my iPhone because my husbands Android is able to send and receive pictures and access the internet with no problems.   I would also like to note that about 2 weeks ago I contacted support to see if they had any news, the tech tried sending me a picture which I did just randomly receive about 2-3 hours later, along with a picture my daughter had sent me earlier in the day.  I asked her to send me another one which I got, but after that I tried sending her a picture and the problem was back. 
    I have been in contact with technical support and network support, who haven't really helped me.  I don't think they know what the problem is so they just ignore me, as it's been 8 days since I've heard from them.  I think 4 weeks is plenty of time to at least narrow it down.  On my first ticket they asked me to run a speed test, which I did and they were going to check the towers.  They called me on my cell, but I missed the call, thanks for leaving that VM though, no cellular data=no VM, so I didn't know until days later you left a message saying no problems were found.  So I had to start over again, two weeks since the problem started.   On my second ticket they said they didn't do the first ticket right, a week later they called back asking for another speed test, which came back above minimum requirements,  they were going to pass it on to network support and here I wait 8 days later, 4 weeks total with no end in sight.
    Today I stopped at the Verizon store hoping they'd have some suggestions.  They said they couldn't do anything on their end, I'd have to call technical support...The only thing they told me that was new was something about a security breach with Samsung extenders, and maybe an update was pushed to my extender that's not playing nice with iPhone.  But how do I check on something like that, who do I report this to??   If that was the case wouldn't Verizon tech support know about it?  I'm not getting any help and I don't feel like anyone at Verizon really cares, but you can bet if my payment was 4 weeks late there'd be an issue. 
    Any suggestions? 

    How old is the extender?  Can it support 1x or both 1x and 3G?  Try checking the Network Extender space for more suggestions and similar questions.

Maybe you are looking for

  • HP 3520 all in one airprint not working. Firmware update cannot proceed

    Dear HP, Two days ago I purchased a HP Deskjet 3520 ALL in one printer. The installation went smooth and I am able to print wireless with my PC. However I cannot print with my iPad, iPhone 5 and using airprint. I am able to print with my HTC one mobi

  • How to hide the cursor in text entry boxes

    I didn't see this answer in the forum, and it took a while to figure this out so I thought I'd post my solution. The issue is that a question requires that the user know where to click before typing, then type the correct value. The problem is that a

  • Need to apply a separate credit line item in Invoice doc.

    Dear SAP experts, Is it possible to apply a separate credit line item on a invoice document to reduce the net amount billed against that invoice and it has to show in invoice ouput form. Thanks and regards, Hari Challa.

  • I believe I downloaded Mozzila, but now where is it? No sign of it under "Programs" or downloads.

    I clicked "run" in the pop up window and went to fix dinner. Came back and the screen says, "Thank you for downloading..." I cannot see anyplace on my computer where it may be. Nothing under "programs" or downloads. Nothing on my desktop. Someone sug

  • Link Problem with Multiple Helpsets

    We use OHW with many helpsets, each with its own Link file. But the links shows the combination of the items from all the helpsets. Robohelp is used to generate the OHW files. We have different projects generating each set of help files. The auto gen