Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masx200/get-public-ip-address
get-public-ip-address
https://github.com/masx200/get-public-ip-address
Last synced: 6 days ago
JSON representation
get-public-ip-address
- Host: GitHub
- URL: https://github.com/masx200/get-public-ip-address
- Owner: masx200
- License: mit
- Created: 2022-06-12T03:59:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T13:35:40.000Z (over 2 years ago)
- Last Synced: 2024-04-16T20:13:05.171Z (7 months ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-public-ip-address
get-public-ip-address
https://www.ipify.org/
获取本机的公共IP地址,包括ipv6,ipv4,或者ipv6,ipv4中任意一个.
适用于`deno`
https://deno.land/x/masx200_get_public_ip_address/mod.ts
`getPublicIpv6`:获取本机的公共IPv6地址
`getPublicIpv4`:获取本机的公共IPv4地址
`getPublicIpAddress`:获取本机的公共IPv6或者ipv4地址