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.