Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I'm making games and I need to make them online so I need to connect to an IP and then exchange strings each playing his turn in the board game. One would be host and one connects to it...

What I have tried:

Winsockets long ago but they were complex and included encoding, I want to exchange unicode strings easily.
Posted
Updated 23-Jun-19 9:58am
Comments
F-ES Sitecore 23-Jun-19 12:51pm    
Google "c# chat application" and you'll find lots of examples.
john1990_1 23-Jun-19 12:58pm    
This one?
youtube.com/watch?v=BDVfpPq3weo
BillWoodruff 28-Jun-19 0:15am    
There are lots of resources out there for this: get busy.

1 solution

Here is an example of a SignalR chat application in ASP.NET: Tutorial: Real-time chat with SignalR 2 | Microsoft Docs[^]

It is also possible to use a self-hosted C# application: SignalR with Self-hosted Windows Service[^]
 
Share this answer
 
Comments
john1990_1 23-Jun-19 17:07pm    
I know only C# Winforms.Net, is this one in the following video good?
youtube.com/watch?v=BDVfpPq3weo
RickZeeland 24-Jun-19 1:56am    
It's ok if you only have one friend I guess :)
The nice thing about SignalR is that you can broadcast to multiple clients.
john1990_1 24-Jun-19 8:17am    
So please direct me to a link on how to do it for more than one peer...
RickZeeland 24-Jun-19 10:11am    
See example here: https://docs.microsoft.com/en-us/aspnet/signalr/overview/guide-to-the-api/working-with-groups
john1990_1 24-Jun-19 10:12am    
That's too complicated, would you please provide a link to a video?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900