https://github.com/jason5ng32/MyIP Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} jason5ng32 / MyIP Public * Notifications * Fork 482 * Star 4k * The best IP Toolbox. Easy to check what's your IPs, IP geolocation, check for DNS leaks, examine WebRTC connections, speed test, ping test, MTR test, check website availability and more! || Ke Neng Shi Zui Hao Yong De IPGong Ju Xiang . Qing Song Jian Cha Ni De IP,IP Di Li Wei Zhi ,Jian Cha DNSXie Lou ,Jian Cha WebRTC Lian Jie ,Su Du Ce Shi ,ping Ce Shi ,MTRCe Shi ,Jian Cha Wang Zhan Ke Yong Xing Deng Deng . ipcheck.ing License MIT license 4k stars 482 forks Branches Tags Activity Star Notifications * Code * Issues 2 * Pull requests 0 * Discussions * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Security * Insights jason5ng32/MyIP This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 502 Commits .github .github api api public public src src .env.example .env.example .gitignore .gitignore CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTING.md Dockerfile Dockerfile LICENSE LICENSE README.md README.md README_FR.md README_FR.md README_ZH.md README_ZH.md SECURITY.md SECURITY.md index.html index.html package.json package.json server.js server.js static-server.js static-server.js vercel.json vercel.json vite.config.js vite.config.js View all files Repository files navigation * README * Code of conduct * MIT license * Security MyIP - A Better IP Toolbox [logo] GitHub Repo stars GitHub forks Docker Pulls Website PWA GitHub license Windows-image MacOS-image Linux-image English | Jian Ti Zhong Wen | Francais Demo: https://ipcheck.ing Notes: You can use my demo for free, and you can also deploy it yourself. Deploy with Vercel Deploy with Docker Main Features * [?] View Your IPs: Detects and displays your local IP, sourcing from multiple IPv4 and IPv6 providers. * [?] IP Information: Presents detailed information for all IP addresses, including country, region, ASN, geographic location, and more. * Availability Check: Tests the accessibility of various websites, such as Google, GitHub, YouTube, ChatGPT, and others. * WebRTC Detection: Identifies the IP address used during WebRTC connections. * DNS Leak Test: Shows DNS endpoint data to evaluate the risk of DNS leaks when using VPNs or proxies. * Speed Test:Test your network speed with edge networks. * Proxy Rule Testing: Test the rule settings of proxy software to ensure their correctness. * Global Latency Test: Performe lantency tests on servers located in different regions around the world. * MTR Test: Perform MTR tests on servers located in different regions around the world. * DNS Resolver: Performs DNS resolution of a domain name from multiple sources and obtains real-time resolution results that can be used for contamination determination. * Dark Mode: Automatically toggles between dark and daylight modes based on system settings, with an option for manual switching. * Minimalist Mode: A mobile-optimized mode that shortens page length for quick access to essential information.. * Search IP Information: Provides a tool for querying information about any IP address. * PWA Supported:Can be added as a desktop app on your phone as well as a Chrome app on your computer. * [?][?] Keyboard Shortcuts: Supports keyboard shortcuts for all functions, press ? to view the shortcut list. * Based on availability test results, it indicates whether global internet access is currently feasible. * English, Chinese, and French support. How to Use There are 3 Ways to deploy: Deploying in a Node Environment Make sure you have Node.js installed. Clone the code: git clone https://github.com/jason5ng32/MyIP.git Install: npm install Build: npm run build Run: npm start The program will run on port 18966. Using Vercel Click the 'Deploy to Vercel' button at the top to complete the deployment. Using Docker Click the 'Deploy to Docker' button at the top to complete the deployment. Or, use the following shell: docker run -d -p 18966:18966 --name myip --restart always jason5ng32/myip:latest Environment Variable You can use the program without adding any environment variables, but if you want to use some advanced features, you can add the following environment variables: Variable Name Required Default Description Value PORT No 18966 The port on which the program runs API Key for Bing Maps, used BING_MAP_API_KEY No "" to display the location of the IP on a map Allowed domains for access, ALLOWED_DOMAINS No "" separated by commas, used to prevent misuse of the backend API API Key for IPCheck.ing, IPCHECKING_API_KEY No "" used to obtain accurate IP geolocation information API Token for IPInfo.io, IPINFO_API_TOKEN No "" used to obtain IP geolocation information through IPInfo.io The domain name when using KeyCDN, must contain https KEYCDN_USER_AGENT No "" prefix. Used to obtain IP address information through KeyCDN API Key for Cloudflare, used CLOUDFLARE_API No "" to obtain AS system information through Cloudflare Google reCAPTCHA's Site Key, VITE_RECAPTCHA_SITE_KEY No "" used to display reCAPTCHA verification on the frontend Google reCAPTCHA's Secret RECAPTCHA_SECRET_KEY No "" Key, used to verify reCAPTCHA verification on the backend Using Environment Variables in a Node Environment Create environment variables: cp .env.example .env Modify .env, and for example, add the following: PORT=18966 BING_MAP_API_KEY="YOUR_KEY_HERE" ALLOWED_DOMAINS="example.com" IPChecking_API="YOUR_KEY_HERE" Then restart the backend service. Using Environment Variables in Vercel Please refer to the content in .env.example and add it to the environment variables in Vercel. Using Environment Variables in Docker You can add environment variables when running Docker, for example: docker run -d -p 18966:18966 \ -e BING_MAP_API_KEY="YOUR_KEY_HERE" \ -e ALLOWED_DOMAINS="example.com" \ -e IPChecking_API="YOUR_TOKEN_HERE" \ --name myip \ jason5ng32/myip:latest 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 90 rounds of back-and-forth and some minor manual adjustments, all the code was completed. Star History Star History Chart About The best IP Toolbox. Easy to check what's your IPs, IP geolocation, check for DNS leaks, examine WebRTC connections, speed test, ping test, MTR test, check website availability and more! || Ke Neng Shi Zui Hao Yong De IPGong Ju Xiang . Qing Song Jian Cha Ni De IP,IP Di Li Wei Zhi ,Jian Cha DNSXie Lou ,Jian Cha WebRTC Lian Jie ,Su Du Ce Shi ,ping Ce Shi ,MTRCe Shi ,Jian Cha Wang Zhan Ke Yong Xing Deng Deng . ipcheck.ing Topics dns ipinfo network proxy webrtc speedtest ip leaks whatismyip pingchecker whatismyipaddress chatgpt Resources Readme License MIT license Code of conduct Code of conduct Security policy Security policy Activity Stars 4k stars Watchers 17 watching Forks 482 forks Report repository Packages 1 Contributors 3 * @jason5ng32 jason5ng32 Jason Ng * @dofy dofy Seven Yu * @Jeamorg Jeamorg Jeamorg Languages * Vue 76.6% * JavaScript 20.5% * CSS 1.9% * Other 1.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.