Im trying a socket programming to build an app to send and receive messages it also uses cryptography everything is set and working except that the Connect Exception: it is constantly saying connection timed out... i have this code on working
socket s = new socket(destination,8888);
then furthur using the outputstream at firstly initiating end and then
socket d= new socket (sender,8888);
and then input stream at the receiving end and both system are well connect with the code
ServerSocket ss = new ServerSocket(8888);
Socket b= new Socket();
b=ss.accept();
what could possibly be wrong??