Skip to content

Simple Computer Networking Command Line Tool 📡 ~~

Notifications You must be signed in to change notification settings

leonma333/Network-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Network-CLI

Simple Local Network Command Line Interface

Get Started:

First to build and run the program, change to the project directory and run the following command. This output the binary executable called network

$ go build -o network

Note: Make sure your machine has Go environment.

Once you generated the executable file, put network to your /usr/bin/ directory.

Usages:

  • Server:
$ network server -port 3000         # create localhost on port 3000 (default 8080)
$ network server -port 3000 -file   # create localhost on port 3000 and use files as server content
  • Forward:
$ network forward -target 127.0.0.1:3000 -port 8080   # forward 127.0.0.1 port 3000 to local port 8080
  • Check
$ network check                               # Return all of the unavailable port number on local machine
$ network check -portList 80,1024,3000,8000   # Return all of the unavailable port number on local machine from given port list
$ network check -ip                           # Return local machine's internal and external IP addresses

More command details use $ network help


Development:

Run the tests with:

$ go test

About

Simple Computer Networking Command Line Tool 📡 ~~

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages