Skip to content

KarmaLimited/go-ports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ports

Ports-go is a Network Monitor that shows real-time network connection tracking. It lists active network connections along with associated processes, updating this information periodically. The tool provides insights into network activity on your system.

Description

This tool scans and displays active network connections on your system. For each connection, it shows details like protocol, local and remote addresses, connection state, and the associated process. It's designed to update this information in real-time, allowing users to monitor their network activity continuously. The output is displayed in a terminal-based user interface and can be exited gracefully with a Control+C command.

Features

Real-time monitoring of network connections. Displays protocol, local and remote IP addresses, state, and associated process name. Color-coded output for better readability (on compatible terminals). Updates data periodically. Graceful exit using Control+C. Installation To install and run Go Network Monitor, follow these steps:

Ensure you have Go installed on your system. Download Go if you haven't installed it yet.

Clone the repository or download the source code.

Navigate to the source code directory.

Compile the program with go build Run the executable.

On Unix-like systems: Run the executable. ./ports-go On Windows: ports-go.exe

or install it with

go install github.com/KarmaLimited/go-ports@latest

and it will end up in your ~/go/bin

Usage

Once running, the program will display a table of active network connections updating in real-time. Press Control+C at any time to exit the program.

Contributions

Are most welcome as long as they are relevant improvements

Lawyering

This is not perfect this is something i whipped up one late afternoon cause i wanted it, it's built and tested on a mac and should work on both linux and windows, notice how i said should, thats because im not sure. So no whining if it doesnt work on your machine cause it might not, if thats the case fix it and setup a PR, please and thank you.

Credits

this is a small tribute to another similiar application called ports, which pretty much a simple script in bash that once upon a time helped me figure out why applications used what ports and why and it was pretty awesome.