#tcp-udp #port #lookup #tool #command-line-tool

app what-the-port

Quickly lookup what a port is used for

7 releases (4 breaking)

new 0.5.1 Dec 11, 2024
0.5.0 Dec 11, 2024
0.4.0 Oct 2, 2024
0.3.1 Oct 1, 2024
0.1.0 Jun 5, 2024

#205 in Network programming

Download history 2/week @ 2024-09-18 147/week @ 2024-09-25 292/week @ 2024-10-02 16/week @ 2024-10-09

505 downloads per month

AGPL-3.0-or-later

56KB
1K SLoC

what-the-port

Quickly lookup what a port is used for or what port to use.

Demo

Install

This tool is very new, so it hasn't been packaged in many places.

If you would like to help package it, please do so and submit an issue/PR so we can list it here.

AUR

paru -S what-the-port

Build locally

cargo install what-the-port

How it works

In essence, this program is a scraper + parser that takes the information in the excellent Wikipedia page List of TCP and UDP port numbers and presents it after formatting the data. There is really nothing special about it.

The main sell, as is the case for many CLI tools, is that of convenience. Instead of having to open up a browser, navigate to the page and scroll or search, you can do it from the comfort of your terminal with one command. There is also the additional benefit that you can now do this lookup offline thanks to caching.

Of course, the intrinsic issue with any scraper is that it isn't particularly resilient. Wikipedia is intended for human consumption first and foremost, not for a program. I fully expect this tool to have issues regularly, when the Wikipedia page gets updated in an unhandled way. Therefore most aspects of this tool are written to be fail-safe, meaning it will try its best to produce usable output. If you encounter errors or warnings, please report them as issues.

Dependencies

~17–30MB
~451K SLoC