Problems with socket connection
807588Jun 18 2009 — edited Jun 19 2009I 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!