A downloadable tool for Windows, Linux, and Android

Download NowName your own price

πŸ”Œ EasyTCP for Unity

Unity Platform License

πŸš€ Overview

EasyTCP is a lightweight Unity networking package designed to simplify TCP communication between applications.

It provides both Server and Client functionality using background threads and async/await, ensuring smooth performance without blocking the Unity main thread.

Perfect for:

  • βœ… Multiplayer prototyping
  • βœ… Remote debugging / telemetry
  • βœ… Cross-app communication (PC ↔ Mobile ↔ Embedded)
  • βœ… IoT/game integrations

πŸ“¦ Installation

Option A — Install via Unity Package Manager (Git URL)

  1. Open Unity β†’ Window β†’ Package Manager
  2. Click + β†’ Add package from Git URL
  3. Paste: https://github.com/IreshSampath/unity-assets-easy-tcp.git
  4. Click Install
  5. Click Import β†’ Samples β†’ Server Sample or Client Sample.
  6. Click + β†’ Add package from Git URL
  7. Paste: https://github.com/IreshSampath/unity-assets-easy-ui-console.git
  8. Click Install
  9. Click Import β†’ Samples β†’ EasyUIConsole Sample

🧰 Quick Start

βœ… Check Samples

  1. Open the TCP Server scene or the TCP Client scene.
  2. Check the Handlers scripts (TCPServerHandler.cs/TCPClientHandler.cs).
  3. Server-side, IP is any, and Port 5000 is already set up.
  4. Client-side, Need to save Server IP and Port

βœ… Server Setup β†’ Check the "TCPServerHandler.cs"

// Receive messages from clients 
void OnEnable() 
{     TCPServer.OnMessageReceived += ReceiveMessage; }  
void ReceiveMessage(int id, string name, string msg) 
{     EasyUIConsoleManager.Instance.EasyHiglight($"{id} {name} {msg}"); }  
// Send to all connected clients 
TCPServer.Instance.SendMessageToAllClients("Hello Clients!");  
// Send to a specific 
client TCPServer.Instance.SendMessageToClient(clientId, "Private Message");

βœ… Client Setup β†’ Check the "TCPClientHandler.cs"

//Need to save Server IP and Port 
PlayerPrefs.SetString("ServerIP", ipAddress.ToString()); 
PlayerPrefs.SetInt("Port", portNumber);  
// Connect to the server 
TCPClient.Instance.ConnectServer();  
// Disconnect when done 
TCPClient.Instance.DisconnectServer();  
// Receive messages from server 
void OnEnable() 
{     TCPServer.OnMessageReceived += ReceiveMessage; }  
void ReceiveMessage(string msg) 
{     EasyUIConsoleManager.Instance.EasyHiglight(msg); }  
// Send messages to server 
TCPClient.Instance.SendMessageToServer("Hello Server!"); 

⚠️ IMPORTANT: READ BEFORE CONNECTING!

To avoid connection failures, make sure:

βœ… Server and Client are on the SAME NETWORK
β€’ Connected to the same Wi-Fi / LAN router
β€’ Hotspot / corporate networks may block local access

βœ… Firewall is NOT Blocking Your App (Windows Users)
β€’ Disable Firewall temporarily, or
β€’ Add an Allow Rule for your TCP app

βœ… Router Must Allow Device-to-Device Communication
β€’ Some routers block internal ports — change to a home network if needed

βœ… Double-check IP & Port Values
β€’ A single typo can stop the connection!

🟒 Once all of the above are βœ…, you’re good to go!

πŸ§ͺ Samples Included

SampleDescription
βœ… EasyTCP Server Sample Demonstrates accepting multiple clients and broadcasting messages
βœ… EasyTCP Client Sample Shows how to connect, send, and listen for messages

βš™οΈ Technical Details

FeatureImplementation
Threading Model Background Threads + Async/Await
Communication TCP (Transmission Control Protocol)
Encoding UTF-8 (string-based messaging)
Supported Platforms Windows / Mac / Linux / Android / iOS
UI Dependency (Optional) EasyUIConsole (for visual debug logs)

πŸ“œ License

This project is licensed under the MIT License — free for commercial and personal use.

πŸ™ Thank You

Thanks for using EasyTCP!

  • Feel free to contribute, report bugs, or request new features.

πŸ‘€ Author

Iresh Sampath πŸ”— LinkedIn Profile

Download

Download NowName your own price

Click download now to get access to the following files:

Android TCP Server.apk 34 MB
Linux TCP Server.zip 33 MB
Windows TCP Server.zip 228 MB
Android TCP Clent.apk 34 MB
Linux TCP Client.zip 33 MB
Windows TCP Client.zip 228 MB

Leave a comment

Log in with itch.io to leave a comment.