---
title: "CircuitPython_Wiznet5k_Socket_Visualizer"
url: "https://maker.wiznet.io/simons/projects/circuitpython-wiznet5k-socket-visualizer/"
markdown_url: "https://maker.wiznet.io/simons/projects/circuitpython-wiznet5k-socket-visualizer/md"
type: "UCC: User Created Content"
author: "Edward Wright"
author_url: "https://github.com/fasteddy516/CircuitPython_Wiznet5k_Socket_Visualizer"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Edward Wright"
original_url: "https://github.com/fasteddy516/CircuitPython_Wiznet5k_Socket_Visualizer"
published: "2023-06-30"
language: "en"
hardware: ["WIZnet W5100"]
likes: 1
views: 157
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# CircuitPython_Wiznet5k_Socket_Visualizer

> CircuitPython_Wiznet5k_Socket_Visualizer

Original author: Edward Wright (source: https://github.com/fasteddy516/CircuitPython_Wiznet5k_Socket_Visualizer)

## Components

- **WIZnet W5100** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5100))
- Software: **Adafruit Circuitpython** ([docs](https://docs.circuitpython.org/en/latest/README.html))

## Article

## Description

Socket Visualizer is a [CircuitPython](https://circuitpython.org/) script that was created to help test the [WIZnet5k driver](https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k) provided by [Adafruit](https://www.adafruit.com/). It creates a simple server that listens for TCP connections and displays a table in the serial console containing hardware socket status information ('reservation' state, status and connected client) as connections are made and broken. When clients connect, the server sends a string indicating which hardware socket the client is connected to. While the client is connected, the server sends out 'heartbeat' strings every 2 seconds.

Below is an example of the Socket Visualizer's output:

[![An example of Socket Visualizer's output](https://github.com/fasteddy516/CircuitPython_Wiznet5k_Socket_Visualizer/raw/main/images/example.png)](https://github.com/fasteddy516/CircuitPython_Wiznet5k_Socket_Visualizer/blob/main/images/example.png)

---

Source: https://maker.wiznet.io/simons/projects/circuitpython-wiznet5k-socket-visualizer/
