Results 1 to 3 of 3
  1. #1
    gagangujral is offline Member
    Join Date
    Apr 2011
    Posts
    9
    Rep Power
    0

    Question java.net.connectexception connection refused connect

    try
    {
    Socket client = new Socket("127.0.0.1",11020);

    input = new BufferedReader(new InputStreamReader(client.getInputStream()));
    output = new PrintWriter(client.getOutputStream(),true);
    ois = new ObjectInputStream(client.getInputStream());
    }

    catch(Exception e){

    javax.swing.JOptionPane.showMessageDialog(null,"Ex ception "+e,"Error!!",javax.swing.JOptionPane.ERROR_MESSAG E);
    System.exit(0);
    }



    when i try running this simple code it gives out an error

    java.net.connectexception connection refused connect

    in the dialogbox i created.

    i tried many solution, disabling firewall, manually opening port 11020. but none seems to wrk for me. please help me guys.

    OS: 64bit win 7 ultimate.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

  3. #3
    gagangujral is offline Member
    Join Date
    Apr 2011
    Posts
    9
    Rep Power
    0

    Default

    take my word for not posting same question on multiple forums but i'm in a real mess here!

    please provide the solution. :(

Similar Threads

  1. Replies: 1
    Last Post: 02-14-2011, 11:41 AM
  2. Ireport: connection to SQL server refused
    By kolonaki in forum Advanced Java
    Replies: 2
    Last Post: 04-14-2010, 05:13 PM
  3. Replies: 3
    Last Post: 01-26-2009, 05:30 PM
  4. Replies: 1
    Last Post: 07-27-2007, 10:59 PM
  5. java.net.ConnectException: Connection refused
    By Albert in forum Advanced Java
    Replies: 2
    Last Post: 07-03-2007, 04:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •