Need help with public-ip-cli?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

sindresorhus
211 Stars 8 Forks MIT License 14 Commits 0 Opened issues

Description

Get your public IP address

Services available

!
?

Need anything else?

Contributors list

# 221
exec
test-fr...
nextjs
messeng...
6 commits
# 1,581
gitlab
GitHub
usersty...
clean-c...
6 commits
# 7,580
TypeScr...
vscode
stringi...
exec
1 commit
# 6,604
chalk
exec
vuejs2
sketch-...
1 commit

public-ip-cli

Get your public IP address

Install

$ npm install --global public-ip-cli

Usage

$ public-ip --help

Usage $ public-ip

Options --ipv4, -4 Return the IPv4 address (default) --ipv6, -6 Return the IPv6 address --https, -h Use HTTPS instead of DNS --timeout=, -t Timeout in milliseconds (default: 5000)

Example $ public-ip 46.5.21.123

$ time public-ip
46.5.21.123

real 0.08s user 0.05s sys 0.02s

Maintainers

Related

License

MIT © Sindre Sorhus

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.