# freeRTOS server + ubuntu cleint application communication through TCP-IP

**URL:** <https://forums.freertos.org/t/freertos-server-ubuntu-cleint-application-communication-through-tcp-ip/23295>\
**Category:** Community Media\
**Tags:** debug\
**Created:** [June 18, 2025, 7:44pm UTC](https://forums.freertos.org/t/freertos-server-ubuntu-cleint-application-communication-through-tcp-ip/23295 "2025-06-18T19:44:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sangram](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Sangram](https://forums.freertos.org/u/Sangram)\
**Post date:** [June 18, 2025, 7:44pm UTC](https://forums.freertos.org/t/freertos-server-ubuntu-cleint-application-communication-through-tcp-ip/23295/1 "2025-06-18T19:44:12Z")

</div>

I want to write and build 2 applications 1\> server app build with freeRTOS and 2\> client application build with ubuntu and communicate both the applications through TCP- IP and want to run this simulation on Ubuntu using posix port, I want receive and transmit the runtime data from both side.  
Can anyone suggest me the steps if anyone tried this earlier?

---

<div class="post-metadata">

**Author:** ![tony-josi-aws](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tony-josi-aws](https://forums.freertos.org/u/tony-josi-aws)\
**Post date:** [June 19, 2025, 3:25am UTC](https://forums.freertos.org/t/freertos-server-ubuntu-cleint-application-communication-through-tcp-ip/23295/2 "2025-06-19T03:25:14Z")

</div>

Here is a TCP demo using FreeRTOS+TCP on posix port that can run on Ubuntu or any Linux: [FreeRTOS/FreeRTOS-Plus/Demo/FreeRTOS\_Plus\_TCP\_Echo\_Posix at main · FreeRTOS/FreeRTOS · GitHub](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix)

The demo application is written to act as a TCP echo client, but you can take a look at this file that implements a simple TCP echo server: [FreeRTOS/FreeRTOS-Plus/Demo/FreeRTOS\_Plus\_TCP\_Minimal\_Windows\_Simulator/DemoTasks/SimpleTCPEchoServer.c at main · FreeRTOS/FreeRTOS · GitHub](https://github.com/FreeRTOS/FreeRTOS/blob/main/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/DemoTasks/SimpleTCPEchoServer.c)  
With very few modifications, if not none, you should be able to use this with the posix demo.

For the Ubuntu client, you can either use netcat or write a simple python script to connect to the TCP server.
