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
204 Stars 6 Forks MIT License 14 Commits 0 Opened issues

Description

Get your public IP address

Services available

!
?

Need anything else?

Contributors list

# 204
node
exec
test-fr...
nextjs
6 commits
# 1,550
gitlab
GitHub
usersty...
clean-c...
6 commits
# 7,266
TypeScr...
Visual ...
vscode
stringi...
1 commit
# 6,407
chalk
Svelte
example...
Ada
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.