https://github.com/noraworld/apinet
Get your public IP address from command line interface
https://github.com/noraworld/apinet
Last synced: 7 months ago
JSON representation
Get your public IP address from command line interface
- Host: GitHub
- URL: https://github.com/noraworld/apinet
- Owner: noraworld
- License: mit
- Created: 2017-03-07T12:10:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-07T12:51:03.000Z (over 8 years ago)
- Last Synced: 2025-01-11T21:28:07.637Z (9 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apinet
A simple command line tool to get your basic network information like public IP address, remote host.## Install
The installation is very simple. Run the following commands.```bash
$ git clone https://github.com/noraworld/apinet.git
$ cd apinet
$ chmod 755 apinet
$ sudo cp apinet /usr/local/bin
```Not work? Try this:
```bash
$ echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc
$ source ~/.bashrc
```I assume you are using bash shell. Change the filename to exact one if you are not using bash.
## Usage
Get your IP address```bash
$ apinet ip
```Get your remote host
```
$ apinet host
```
Commands will be added in the future...## License
All codes of this repository are available under the MIT license. See the [LICENSE](https://github.com/noraworld/apinet/blob/master/LICENSE) for more information.