Multi Port Server for Test

Open multiple ports and return OK.

Parameters

Option Description Default
-p Start Port Number 58000
-n Count 1

Usage

$ portserver -p 58000 -n 100 &
Open Port From 58000 to 58099
....

$ curl http://localhost:58000
OK

Build

go build
GOOS=windows GOARCH=amd64 go build # for windows