<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Harini Emmadi</title>
    <description>The latest articles on DEV Community by Harini Emmadi (@hariniguptaemmadi).</description>
    <link>https://dev.to/hariniguptaemmadi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3692675%2F55f7a31b-3c57-4737-b69f-1b74b8851916.jpeg</url>
      <title>DEV Community: Harini Emmadi</title>
      <link>https://dev.to/hariniguptaemmadi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hariniguptaemmadi"/>
    <language>en</language>
    <item>
      <title>Built a Java Multi-Client Group Chat Application using Socket Programming</title>
      <dc:creator>Harini Emmadi</dc:creator>
      <pubDate>Sun, 04 Jan 2026 13:38:46 +0000</pubDate>
      <link>https://dev.to/hariniguptaemmadi/built-a-java-multi-client-group-chat-application-using-socket-programming-5fa2</link>
      <guid>https://dev.to/hariniguptaemmadi/built-a-java-multi-client-group-chat-application-using-socket-programming-5fa2</guid>
      <description>&lt;h2&gt;
  
  
  🚀 Introduction
&lt;/h2&gt;

&lt;p&gt;Real-time chat applications are a great way to understand &lt;strong&gt;Java networking, multithreading, and client–server architecture&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In this blog, I’ll walk you through how I built a &lt;strong&gt;Java Multi-Client Group Chat Application&lt;/strong&gt; using &lt;strong&gt;TCP sockets and Swing GUI&lt;/strong&gt;, inspired by Naruto’s &lt;em&gt;Leaf Village&lt;/em&gt; theme.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;GitHub Repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/hariniguptaemmadi/GroupChat-Application" rel="noopener noreferrer"&gt;https://github.com/hariniguptaemmadi/GroupChat-Application&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 What This Project Demonstrates
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Java &lt;strong&gt;Socket Programming&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multithreaded server&lt;/strong&gt; handling multiple clients&lt;/li&gt;
&lt;li&gt;Real-time message broadcasting&lt;/li&gt;
&lt;li&gt;Java Swing GUI with custom styling&lt;/li&gt;
&lt;li&gt;Client–server architecture&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🏗 Architecture Overview
&lt;/h2&gt;

&lt;p&gt;The application follows a classic &lt;strong&gt;client–server model&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A central server listens on a port&lt;/li&gt;
&lt;li&gt;Each client connects via a socket&lt;/li&gt;
&lt;li&gt;The server creates a new thread per client&lt;/li&gt;
&lt;li&gt;Messages are broadcast to all connected users&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🖥 Server Side (Java Sockets + Threads)
&lt;/h2&gt;

&lt;p&gt;The server:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Listens on port &lt;code&gt;2003&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Accepts multiple client connections&lt;/li&gt;
&lt;li&gt;Uses threads for concurrent communication&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This ensures that multiple users can chat &lt;strong&gt;simultaneously without blocking&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  👤 Client Side (Swing GUI)
&lt;/h2&gt;

&lt;p&gt;Each client:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connects to the server using TCP sockets&lt;/li&gt;
&lt;li&gt;Has a custom Swing-based UI&lt;/li&gt;
&lt;li&gt;Displays messages as chat bubbles with timestamps&lt;/li&gt;
&lt;li&gt;Uses themed backgrounds and avatars&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🎯 Key Learnings
&lt;/h2&gt;

&lt;p&gt;Through this project, I learned:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How multithreading works in real-world Java applications&lt;/li&gt;
&lt;li&gt;How sockets enable real-time communication&lt;/li&gt;
&lt;li&gt;Synchronizing background threads with UI updates&lt;/li&gt;
&lt;li&gt;Designing clean client–server systems&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔮 Future Enhancements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Login system with usernames&lt;/li&gt;
&lt;li&gt;Message encryption&lt;/li&gt;
&lt;li&gt;File and image sharing&lt;/li&gt;
&lt;li&gt;Chat history persistence&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌 Conclusion
&lt;/h2&gt;

&lt;p&gt;This project helped me strengthen my understanding of &lt;strong&gt;Java networking and concurrent programming&lt;/strong&gt; while also exploring creative UI design.&lt;/p&gt;

&lt;p&gt;⭐ If you find this project useful, please consider starring the repository!&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;Source Code:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/hariniguptaemmadi/GroupChat-Application" rel="noopener noreferrer"&gt;https://github.com/hariniguptaemmadi/GroupChat-Application&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;💬 What feature would YOU add to this Java chat application next?&lt;br&gt;
I’m considering encryption, file sharing, or login — curious to hear your thoughts!&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>java</category>
      <category>networking</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
