Click here to Skip to main content
15,889,863 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Want a chat system with file transfer in c# .Net
C#
I tried lots of ariticles like http://www.codeproject.com/Articles/12893/TCP-IP-Chat-Application-Using-C but doesnot got the correct solution of the problem and little doubt about listening server and requesting client


What I have tried:

I tried lots of ariticles like http://www.codeproject.com/Articles/12893/TCP-IP-Chat-Application-Using-C but doesnot got the correct solution of the problem and little doubt about listening server and requesting client
Posted

1 solution

If you want to build an enterprise level of application such as a chat application, and that also supports FTP protocol (File transfer protocol[^]). The part to build the chatting application would be simple, just simple HTTP based text transfer to the hub and that can be overcome using ASP.NET's Web API. I would recommend that you use Web API and SignalR to build the chat application.

1. Web API can be used to allow communications between devices, that support HTTP protocol ; almost every device from computers, laptops, mobiles to tablets.
2. SignalR would support "real-time" duplex communication. The type required by chat application.
3. ASP.NET Web API is a very simple framework, and if you know ASP.NET MVC, then chances are, you already know Web API.

That is for the chat application, now if you want to share files too. HTTP supports file uploading too. Since you are interested in TCP/IP communication and your question shows that you are not (even) intermediate but a beginner. I would ask you to move on to WCF framework. Which provides an abstracted high-level interface for building applications that work as a client-server model. As a starter, read this: Creating a Web Service to be consumed by connected Devices via Internet[^]
 
Share this answer
 
Comments
Jithin Jithz 15-Feb-16 5:16am    
Sir i want it through LAN network
Afzaal Ahmad Zeeshan 15-Feb-16 5:19am    
Both, ASP.NET and WCF, would work perfectly. If you want it on a private network, don't publish it to the internet at all. Keep it hosted and running on your own network. Set up the IP addresses for the service and you're good to go. :-)
Jithin Jithz 15-Feb-16 5:22am    
Any demo or reference plzzzzz??

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