{"id":31286965,"url":"https://github.com/mrdevanony/myip","last_synced_at":"2026-03-07T17:33:14.768Z","repository":{"id":315109912,"uuid":"1058134231","full_name":"MrDevAnony/MyIP","owner":"MrDevAnony","description":"Lightweight, fast IP probing \u0026 lookup tool written in Go and Fiber.","archived":false,"fork":false,"pushed_at":"2025-09-16T19:00:36.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T20:09:35.628Z","etag":null,"topics":["go","go-fiber","golang","ip"],"latest_commit_sha":null,"homepage":"https://myip.dynx.pro","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrDevAnony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-16T17:04:08.000Z","updated_at":"2025-09-16T19:00:40.000Z","dependencies_parsed_at":"2025-09-16T20:10:28.897Z","dependency_job_id":"89a63e10-5c4b-4e7e-b546-0fd5e5f11111","html_url":"https://github.com/MrDevAnony/MyIP","commit_stats":null,"previous_names":["mrdevanony/myip"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MrDevAnony/MyIP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrDevAnony%2FMyIP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrDevAnony%2FMyIP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrDevAnony%2FMyIP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrDevAnony%2FMyIP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrDevAnony","download_url":"https://codeload.github.com/MrDevAnony/MyIP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrDevAnony%2FMyIP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276737513,"owners_count":25695700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","go-fiber","golang","ip"],"created_at":"2025-09-24T10:59:35.172Z","updated_at":"2025-09-24T10:59:37.197Z","avatar_url":"https://github.com/MrDevAnony.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyIP\n\nA simple, high-performance, and scalable API that returns a client's public IP address. Built with **Go** and the **Fiber** web framework, it's designed to handle extremely high traffic with minimal resource usage.\n\nThis service correctly identifies the visitor's real IP address, even when behind a reverse proxy or CDN like Cloudflare.\n\n## Live Version\n\nA public and rate-limit-free version of this service is deployed and maintained by **DynX**.\n\n-   **IPv4 \u0026 IPv6:** [`https://myip.dynx.pro`](https://myip.dynx.pro)\n-   **IPv4 Only:** [`https://ipv4.myip.dynx.pro`](https://ipv4.myip.dynx.pro)\n-   **IPv6 Only:** [`https://ipv6.myip.dynx.pro`](https://ipv6.myip.dynx.pro)\n\n## Features\n\n-   ✅ Returns the visitor's public IP address in plain text.\n-   🚀 Blazing fast and lightweight, thanks to Go and Fibe.\n-   ⚙️ Optimized for high-concurrency environments with Fiber's `Prefork` feature.\n-   🌐 Listens on both IPv4 and IPv6.\n-   🔒 Reliably detects the real client IP behind proxies.\n\n---\n## Performance\n\n![MyIP_wrk](https://github.com/user-attachments/assets/14370449-a1e4-4b89-91d6-70e2779d42c3)\n\nThe `MyIP` service demonstrates high-performance capabilities for handling concurrent HTTP requests. As shown in the benchmark above, the application is capable of processing over **60,000 requests per second** with low latency (~21 ms average) under heavy load.\n\nThis test was performed from an **8-core server** to a **2-core server** (host: `myip.dynx.pro`) using `wrk` with **8 threads and 1000 concurrent connections** over a **15-second duration**. The results highlight the efficiency of the server in returning simple plaintext responses, making it ideal for low-latency, high-throughput scenarios.\n\n## Installation \u0026 Usage\n\n### Prerequisites\n\nYou need to have **Go** installed on your server.\n\n### Steps\n\n1.  **Clone the repository**\n    ```bash\n    git clone https://github.com/MrDevAnony/MyIP.git\n    cd MyIP\n    ```\n\n2.  **Edit .env file**\n    This command opens the `.env` configuration file in the nano text editor, allowing you to modify its contents.\n    ```bash\n    nano .env\n    ```\n\n3.  **Build the application**\n    This command compiles the source code into a single executable binary named `MyIP`.\n    ```bash\n    go mod init MyIP \u0026\u0026 go mod tidy \u0026\u0026 go build -o MyIP main.go\n    ```\n\n4.  **Run the application**\n    The server will start and listen on port `3000`.\n    ```bash\n    ./myip\n    ```\n\n5.  **Test it**\n    You can now get your IP by making a request to the server.\n    IPv4:\n    ```bash\n    curl http://(IPv4 or IPv6):3000/\n    ```\n---\n\n## Running as a Systemd Service\n\nTo ensure the application runs continuously in the background, automatically starts at boot, and restarts if it fails, you can set it up as a `systemd` service.\n\n1.  **Create the Service File**\n    Open a new service file with a text editor like `nano`:\n    ```bash\n    sudo nano /etc/systemd/system/MyIP.service\n    ```\n\n2.  **Add the Configuration**\n    Copy and paste the following content into the file. **Important:** Make sure the `ExecStart` and `WorkingDirectory` paths match the location where you built your application. The example below assumes your project is in `/root/MyIP`.\n\n    ```ini\n    [Unit]\n    Description=MyIP Service\n    After=network.target\n\n    [Service]\n    ExecStart=/root/MyIP/MyIP\n    WorkingDirectory=/root/MyIP\n    Restart=always\n    User=root\n    Group=root\n\n    [Install]\n    WantedBy=multi-user.target\n    ```\n\n3.  **Enable and Start the Service**\n    Run the following commands to reload the systemd manager, enable your service to start on boot, and start it immediately.\n\n    ```bash\n    # Reload the systemd daemon to recognize the new service\n    sudo systemctl daemon-reload\n\n    # Enable the service to start automatically on boot\n    sudo systemctl enable MyIP.service\n\n    # Start the service right away\n    sudo systemctl start MyIP.service\n    ```\n\n4.  **Check the Status**\n    You can verify that the service is running correctly with the following command:\n    ```bash\n    sudo systemctl status MyIP.service\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdevanony%2Fmyip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrdevanony%2Fmyip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdevanony%2Fmyip/lists"}