Skip to content

Conversation

Copy link

Copilot AI commented May 22, 2025

This PR adds a new feature that allows users to check their current IP address and view detailed information about it.

Backend Changes

  • Added a new API endpoint /api/myip that returns information about the client's IP address
  • Exported the existing ipInfo function from updateServerlist.ts to be reused in the new endpoint
  • The endpoint extracts the client IP from request headers and uses ipinfo.io API to get additional information

Frontend Changes

  • Created a new page at /my-ip that displays the user's IP address information
  • Added a new navigation menu item "自分のIPアドレス確認" (Check your IP address)
  • Implemented a clean UI with a table showing:
    • IP Address (with copy button)
    • Hostname
    • Location (city, region, country)
    • Geographic coordinates
    • Organization (ASN)
    • Postal code
    • Timezone

The implementation reuses existing code and API connections, making it a lightweight addition to the existing tools.

Fixes #408.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 22, 2025

Deploying nw-tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5a1e967
Status: ✅  Deploy successful!
Preview URL: https://90ac7edf.nw-tools.pages.dev
Branch Preview URL: https://copilot-fix-408.nw-tools.pages.dev

View logs

Copilot AI and others added 2 commits May 22, 2025 12:44
Copilot AI changed the title [WIP] IPアドレス確認機能をつける Add IP address check feature May 22, 2025
Copilot AI requested a review from symysak May 22, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPアドレス確認機能をつける

2 participants