wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Problem when connecting a client to a chatroom application over the internet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Problem when connecting a client to a chatroom application over the internet." Watch "Problem when connecting a client to a chatroom application over the internet." New topic
Author

Problem when connecting a client to a chatroom application over the internet.

Isuru Buddhika
Greenhorn

Joined: Nov 04, 2012
Posts: 11

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) :

Isuru Buddhika
Greenhorn

Joined: Nov 04, 2012
Posts: 11

Help me please... I tried various ways but still no luck
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem when connecting a client to a chatroom application over the internet.