Sorry about not being more specific. I ran the client app in netbeans because it very nicely will give me the error msgs.
I get connection refused as an error. on the client side
I dont have the a firewall on during the
test as well.
Also, i dont get any output from the server side.
This is the connection code:
As you can see the user enters in the IP and socket that i give him.
private void setUpNetworking(){
String IPA;
String OSN;
int SN;
try {
IPA = (jTextField6.getText());
OSN=(jTextField7.getText());
SN = Integer.valueOf(OSN).intValue();
sock = new Socket(IPA, SN);
InputStreamReader streamReader = new InputStreamReader(sock.getInputStream());
reader = new BufferedReader(streamReader);
writer = new PrintWriter(sock.getOutputStream());
jLabel8.setText("Connected to Server");
} catch (IOException ex) {
ex.printStackTrace();
}
}
Thanks for your help