Code Monkey home page Code Monkey logo

3kmfi6hp / myip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jason5ng32/myip

0.0 1.0 1.0 543 KB

A better IP Toolbox. Easy to check what's your IPs, IP informations, check for DNS leaks, examine WebRTC connections, and test website availability. || 🇨🇳 一个更好的 IP 工具箱。可以查看IP、IP 信息(代理前后)、检查 DNS 泄露、检查 WebRTC 连接、测试网站可用性等。

Home Page: https://jason5ng32.github.io/MyIP/

License: MIT License

JavaScript 59.91% CSS 4.23% HTML 35.86%

myip's Introduction

MyIP - A Better IP Toolbox

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. PWA Supported:Can be added as a desktop app on your phone as well as a Chrome app on your computer.
  10. Based on availability test results, it indicates whether global internet access is currently feasible.
  11. 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.

There are 2 ways to display a map showing the location of an IP:

  1. Click on the + Add button next to the map display button and fill in the API KEY, then map function will be enabled and always available in current browser.
  2. Or, you can modify res/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 for all users.

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

myip's People

Contributors

jason5ng32 avatar dofy avatar

Watchers

 avatar

Forkers

yuanzhou029

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.