Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gkawamoto/testport
Small utility to test ports, no matter what OS you're using.
https://github.com/gkawamoto/testport
golang network
Last synced: 1 day ago
JSON representation
Small utility to test ports, no matter what OS you're using.
- Host: GitHub
- URL: https://github.com/gkawamoto/testport
- Owner: gkawamoto
- License: mit
- Created: 2019-07-02T14:11:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-15T11:28:26.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T19:22:38.768Z (5 months ago)
- Topics: golang, network
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# testport
Small utility to test ports, no matter what OS you're using.
# Installation
```
go install github.com/gkawamoto/testport@latest
```# Usage
```bash
$ testport -help
USAGE: testport host port [-revert] [-timeout milliseconds; default=500] [-help]
```# Examples
```bash
$ testport localhost 22 && echo "ssh server running on localhost"
``````bash
$ testport -revert 192.168.1.2 3389 && echo "remote desktop not available at 192.168.1.2"
``````bash
$ # slow network, lets leave some breathing room
$ testport -timeout 2000 201.48.33.80 3389 && echo "remote desktop not available at 192.168.1.2"
```