Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with socket connection

807588Jun 18 2009 — edited Jun 19 2009
I am writing an instant messaging application, and I can not seem to get it working. I have been successfully able to send messages one way, but not the other way. One of my streams seems to close when it starts, but for the life of me (and with help), I can't seem to figure out the problem at all. Also I can't seem to pinpoint the problem in my code either in any of the usual ways. Can someone help?

I will post the code seperatly.



Here is what I get when I run the program:

Chat is sending a message.
Chat with 204.84.8.184 is sending a message.
HAS NEXT
HAS NEXT
Receiving Stream Closed...Chat

It also may help to know that this code seems to work for some reason when I use 'localhost' instead of typing in my IP address.

Any help is much appreciated!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2009
Added on Jun 18 2009
20 comments
519 views