I created a chat room application using java socket and tried to connect a client via the internet. Both client and server machines were connected to the internet through USB HSPA modems. When the client tris to connect a StreamCorruptedException was thrown. I cannot figure out the reason for that. Can you please help me to fix this. Source code of my application is given below.
1) Server :
2). Client :
3). ClientListener :
4) GUI(Chatroom) :