An open API service indexing awesome lists of open source software.

https://github.com/kevingimbel/portcheck

:computer: Check if a remote hosts port is open or not.
https://github.com/kevingimbel/portcheck

Last synced: 3 months ago
JSON representation

:computer: Check if a remote hosts port is open or not.

Awesome Lists containing this project

README

        

# portcheck

A small utility to check for open ports.

Taken from [StackOverflow](http://stackoverflow.com/a/35337930/2777153) and wrapped inside a little function.

### Install
Clone this repository to some place on your computer.

```bash
$ cd ~/github
$ git clone [email protected]:kevingimbel/portcheck.git
```

Then make the script executable and link it somewhere into your `$PATH`.

```bash
$ chmod +x portcheck
$ (sudo) ln -s /full/path/to/portcheck /usr/local/bin/
```

Now you can run `portcheck -v` to see if it was installed correctly.

### Usage
Call the script and pass `--host` and `--port` as parameter.

```bash
$ portcheck --host mywebsite.com --port 80
$ portcheck --host 123.456.789 --port 22
```