Skip to content

Simple bash scripts to query external IP address and to check if a port on an internal LAN is open to the outside

License

Notifications You must be signed in to change notification settings

tamitutor/bash-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CheckPort

Extremely simple bash script to check if a port on an internal LAN is open to the outside

Assumptions

You are using some sort of *nix or BSD flavored system with a bash shell

Installation

Very simple: download and install to a bin directory in your path

  1. To find what directories are in your path type the following at the command line
$ echo $PATH

Usage

checkport.sh [port number]

Dependencies

  1. Curl

  2. Third party websites/services:

    If these are down or too slow you may replace with any other services that perform similar functions.

Disclaimers

Be aware that determining the result of the port availability is specific to the output received from http://www.canyouseeme.org. If you swap out canyouseeme.org with another site or service you will need to modify the curl and grep command on line 9 of the script accordingly.

WhatIsMyIp

Another simple script to get your external IP address without having to visit a website. For other documentation/installation instructions see above...

About

Simple bash scripts to query external IP address and to check if a port on an internal LAN is open to the outside

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages