https://github.com/52cik/myip-cli
View internal IP and external IP
https://github.com/52cik/myip-cli
external-ip internal-ip
Last synced: about 1 month ago
JSON representation
View internal IP and external IP
- Host: GitHub
- URL: https://github.com/52cik/myip-cli
- Owner: 52cik
- License: mit
- Created: 2017-03-04T15:32:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-26T04:30:09.000Z (almost 2 years ago)
- Last Synced: 2025-04-15T21:41:38.012Z (about 1 month ago)
- Topics: external-ip, internal-ip
- Language: JavaScript
- Size: 10.7 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# myip
A simple CLI for view internal IP and external IP
[中文说明](/README_CN.md)
## Installation & Usage
Prerequisites: Node.js (>=4.x, 6.x preferred), npm version 3+ and Git.
``` sh
$ npm install -g myip-cli
$ myip# or
$ npx myip-cli
```You can see the following information.
``` js
internal: { en0: 'x.x.x.x', vnic0: 'x.x.x.x' }
external: { ip: 'x.x.x.x', region: 'region information' }
```