# TCP Echo Server

TCP Echo Server is a lightweight Go-based service that echoes Transmission Control Protocol (TCP) data back to clients, helping homelab users verify that a TCP port or network path is open and reachable. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6636/tcp-echo-server

## Description

TCP Echo Server is a lightweight Go-based service that echoes Transmission Control Protocol (TCP) data back to clients, helping homelab users verify that a TCP port or network path is open and reachable.

## Platform availability

Available on 0 of 10 platforms.

## Health score

22/100 (Low), based on 4 of 5 factors.
- Maintained: 0 (last commit 2936 days ago)
- Popular: 26 (18 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 58 (no serious findings, tests, OpenSSF Scorecard 1.8/10)

## Links

- GitHub: https://github.com/venilnoronha/tcp-echo-server
- Docker Hub: https://hub.docker.com/r/venilnoronha/tcp-echo-server

## Common questions

### How do I run TCP Echo Server in Docker?

Run the Docker image with a TCP port mapping, such as docker run -p 9000:9000 venilnoronha/tcp-echo-server:latest. The example server listens on port 9000 with the hello prefix.

### What does the server send back to a client?

It prepends a preconfigured prefix to the data it receives and writes it back on the connection. In the example, sending world returns hello world.

### How can I manually test the server locally?

Send text over netcat to the listening port, for example echo world | nc localhost 9000. The expected example response is hello world.

### Can I connect to it from a phone web browser?

No, browsers do not support raw TCP sockets. Use an Android or iOS native app build instead, because opening the connection in a web browser will fail.

---
Source: Our Local Host (https://ourlocalhost.com/app/6636/tcp-echo-server), the self-hosted and open-source app directory.
