Im attempting put some sort of simple chat functionality into my C# program but need clarification on a few issues before I start...
Sockets are the main way of connecting users together if i understand correctly. A server, with a known IP address is contacted and is used to record the IP address and port number of each client. Once the clients have the necessary IP addresses they can communicate directly. I can understand how this would work on a local network but would ports need to be forwarded for this to work over the internet?
If that is the case then I would need to find another way of implementing a chat feature.
The program is already consuming a webservice, could that be modified to facilitate chat in an efficient fashion?
Question
Guest
Im attempting put some sort of simple chat functionality into my C# program but need clarification on a few issues before I start...
Sockets are the main way of connecting users together if i understand correctly. A server, with a known IP address is contacted and is used to record the IP address and port number of each client. Once the clients have the necessary IP addresses they can communicate directly. I can understand how this would work on a local network but would ports need to be forwarded for this to work over the internet?
If that is the case then I would need to find another way of implementing a chat feature.
The program is already consuming a webservice, could that be modified to facilitate chat in an efficient fashion?
Thanks
Link to comment
Share on other sites
21 answers to this question
Recommended Posts