Skip to content
/ MyIP Public
forked from jason5ng32/MyIP

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 连接、测试网站可用性等。

License

Notifications You must be signed in to change notification settings

xRinairgi/MyIP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP Toolkit

GitHub Repo stars GitHub GitHub contributors GitHub commit activity (branch)

🇺🇸 English | 🇨🇳 简体中文

Demo: jason5ng32.github.io/MyIP

Notes: Please note that some data on the demo site may not be displayed because it has been accessed frequently recently (I didn't expect that either). To circumvent this, you can deploy the site yourself.

Deploy with Vercel

Main Features

  1. View Your IPs: Detects and displays your local IP, sourcing from multiple IPv4 and IPv6 providers.
  2. IP Information: Presents detailed information for all IP addresses, including country, region, ASN, geographic location, and more.
  3. Availability Check: Tests the accessibility of various websites, such as Google, GitHub, YouTube, ChatGPT, and others.
  4. WebRTC Detection: Identifies the IP address used during WebRTC connections.
  5. DNS Leak Test: Shows DNS endpoint data to evaluate the risk of DNS leaks when using VPNs or proxies.
  6. Dark Mode: Automatically toggles between dark and daylight modes based on system settings, with an option for manual switching.
  7. Minimalist Mode: A mobile-optimized mode that shortens page length for quick access to essential information..
  8. Arbitrary IP Information: Provides a tool for querying information about any IP address.
  9. Based on availability test results, it indicates whether global internet access is currently feasible.
  10. English and Chinese supported.

How to Use

The tool is almost ready to use straight out of the box. Just download the entire codebase and deploy it on your local machine or server. No additional setup is required.

To display a map showing the location of an IP, modify app.js. In the data section, locate:

bingMapAPIKEY: '',

Enter your Bing Map API Key here. Upon doing so, the map functionality on the homepage will activate automatically.

Applying for this API key is free and includes up to 120,000 requests per year at no cost, adequate for personal use. For larger projects, consider adjusting the program to avoid embedding the key in the frontend code.

If you don't need map functionality, the program can also be deployed easily with a single click on Vercel.

Advanced Usage

If you're using a proxy for internet access, consider adding this rule to your proxy configuration (modify it according to your client). This setup lets you check both your real IP and the IP when using the proxy:

# 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

Additional Notes

70% 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.

Star History

Star History Chart

About

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 连接、测试网站可用性等。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.2%
  • HTML 31.5%
  • CSS 4.3%