jason5ng32 / MyIP
- четверг, 30 ноября 2023 г. в 00:00:09
IP Toolkit. It allows you to view local IP, IP information after using a proxy, check for DNS leaks, examine WebRTC connections, and test website availability. || IP 工具箱。可以查看本机IP、挂代理后的IP信息、检查 DNS 泄露、检查 WebRTC 连接、测试网站可用性等。
Demo: jason5ng32.github.io/MyIP
Notes: Note: Some data on the demo site may not be displayed because it has been used frequently recently... (I didn't expect that either), just deploy it yourself.
It's almost ready to use out of the box. Simply download all the code and place it on your local machine or server, with no extra steps required.
If you want to display a map of the IP's location, you need to modify app.js
. In the data
section, find:
bingMapAPIKEY: '',
Add your Bing Map API Key here. After adding it, the map button on the homepage will automatically become active.
Applying for this API is free, allowing up to 120,000 free requests per year, which should be sufficient for personal use. If you plan to use it for larger projects, consider modifying the program so as not to include the key in the frontend code.
If you're not planning to add map functionality, you can also deploy it with one click on Vercel.
If you are using a proxy to access the internet, consider adding the following rule to your proxy configuration (please modify according to the client you are using). This will allow you to simultaneously query your real IP and the IP after proxying:
# IP Testing
IP-CIDR,1.0.0.1/32,DIRECT,no-resolve
IP-CIDR6,2606:4700:4700::1111/128,DIRECT,no-resolve
DOMAIN-SUFFIX,ipify.org,Proxy
80% of the code for this program was not written by me, but generated through ChatGPT. After about 50 rounds of back-and-forth and some minor manual adjustments, all the code was completed.