A simple CLI tool to display your local and public IP addresses, MAC addresses, and check the status of custom application ports. Useful for developers and network admins to quickly view network info and monitor running services.
- Show local IP and MAC addresses for all network interfaces
- Display your public IP address
- Check status of custom ports (active/inactive, PID, URL)
- Easily edit your custom port list
You need Node.js installed.
Note: This package is intended to be installed globally.
npm install -g sohag-cliOr, if you want to use locally, run commands with npx:
npx sohag ipsohag ipsohag portssohag ports-editThis opens your ports-list.json file in Notepad (Windows) or Nano (Linux/macOS). Add or modify entries as needed.
- On first run, a file
ports-list.jsonis created in your home directory under.sohag-cli. - The
ipcommand shows all local IPv4 addresses and MACs, plus your public IP. - The
portscommand checks each port in your custom list and shows if it's active, its PID, and the associated URL. - The
ports-editcommand lets you edit your custom port list easily.
[
{ "name": "App1", "port": "3000", "url": "http://localhost:3000" },
{ "name": "App2", "port": "8080", "url": "http://localhost:8080" },
{ "name": "App3", "port": "5000", "url": "http://localhost:5000" }
]
Minhazul Islam Sohag minhazul.islamcse@gmail.com