Skip to content

Deploying MyIP

Introduction

MyIP is a lightweight, self-hosted application that displays your public IP address along with detailed network information. Instead of relying on third-party IP lookup services that may track your queries, MyIP gives you a private, ad-free way to check your IP address and network details.

The application provides a clean, modern interface showing not just your IP address but also geolocation data, ISP information, and various network diagnostic tools. It’s particularly useful for network administrators, developers, and privacy-conscious users who want to verify their network configuration without external tracking.

Key highlights of MyIP:

  • IP Address Display: Shows your public IPv4 and IPv6 addresses instantly
  • Geolocation: Displays location information based on your IP address
  • ISP Information: Shows your internet service provider details
  • Network Diagnostics: Built-in tools for ping, traceroute, and DNS lookup
  • Clean Interface: Modern, ad-free design focused on essential information
  • API Endpoint: Programmatic access to IP information via JSON API
  • Privacy Focused: No tracking or data collection on your queries
  • Fast Response: Lightweight application with minimal latency

This guide walks through deploying MyIP on Klutch.sh using Docker.

Why Deploy MyIP on Klutch.sh

Deploying MyIP on Klutch.sh provides several benefits:

Privacy: Your IP lookups aren’t logged by third-party services. Only you know when and how often you check your IP.

Reliability: Having your own IP lookup service means no dependency on external services that may go offline or change their terms.

Always Available: Access your IP checker from anywhere, anytime, without ads or rate limiting.

Simplified Deployment: Push to GitHub and Klutch.sh handles the rest. No server management required.

HTTPS by Default: Secure access to your IP information with automatic SSL certificates.

Custom Domain: Use your own domain for a professional, branded IP lookup service.

Prerequisites

Before deploying MyIP on Klutch.sh, ensure you have:

Preparing Your Repository

Create a GitHub repository for your MyIP deployment.

Repository Structure

myip-deploy/
├── Dockerfile
└── .dockerignore

Creating the Dockerfile

FROM ghcr.io/jason5ng32/myip:latest
# Expose the web interface port
EXPOSE 18966
# Environment configuration
ENV PORT=18966

Creating the .dockerignore File

.git
.github
*.md
LICENSE
.gitignore
.DS_Store

Deploying MyIP on Klutch.sh

    Push Your Repository to GitHub

    Initialize and push your repository with the Dockerfile to GitHub.

    Create a New Project on Klutch.sh

    Navigate to the Klutch.sh dashboard and create a project named “myip” or “ip-lookup”.

    Create a New App

    Create a new app within your project and connect your GitHub repository.

    Configure HTTP Traffic

    MyIP serves web content over HTTP:

    • Select HTTP as the traffic type
    • Set the internal port to 18966

    Set Environment Variables (Optional)

    Configure optional settings:

    VariableValue
    PORT18966 (default)

    Deploy Your Application

    Click Deploy to build and start your MyIP instance.

    Access Your IP Lookup Service

    Once deployed, visit https://your-app-name.klutch.sh to see your IP information.

Using MyIP

Web Interface

The main interface displays:

  • Public IP Address: Your IPv4 and IPv6 addresses
  • Location: City, region, and country based on IP geolocation
  • ISP: Your internet service provider name
  • Network Details: ASN and other technical information

API Access

Access IP information programmatically:

GET https://your-app-name.klutch.sh/api/ip

Response:

{
"ip": "203.0.113.42",
"country": "United States",
"city": "San Francisco",
"isp": "Example ISP"
}

Network Tools

MyIP includes diagnostic tools:

  • Ping: Test connectivity to hosts
  • Traceroute: View network path to destinations
  • DNS Lookup: Query DNS records

Use Cases

VPN Verification

Verify your VPN connection:

  1. Connect to your VPN
  2. Visit your MyIP instance
  3. Confirm IP matches VPN server location
  4. Check for DNS leaks

Network Troubleshooting

Diagnose network issues:

  • Verify public IP hasn’t changed unexpectedly
  • Check if ISP information is correct
  • Confirm geolocation accuracy

Development and Testing

Useful for developers:

  • Test applications that need IP detection
  • Verify proxy configurations
  • Debug network-related features

Internal Tools

Provide IP lookup for your organization:

  • Employees can verify network configuration
  • Help desk can quickly identify user locations
  • No external service dependencies

Production Best Practices

Performance

  • MyIP is lightweight and requires minimal resources
  • Start with default resource allocation
  • Scale only if serving many concurrent users

Security

  • HTTPS is automatic on Klutch.sh
  • Consider access restrictions if needed
  • Monitor for unusual access patterns

Reliability

  • MyIP has no database requirements
  • Stateless design ensures high availability
  • Quick container restarts with no data loss

Troubleshooting

Incorrect IP Displayed

If the displayed IP doesn’t match expected:

  • Check if you’re behind a VPN or proxy
  • Verify no corporate proxy is intercepting traffic
  • Clear browser cache

Page Not Loading

  • Verify deployment is running in Klutch.sh
  • Check HTTP traffic configuration
  • Confirm correct port (18966)

Geolocation Inaccurate

Geolocation databases may have inaccuracies:

  • IP geolocation is approximate
  • VPN/proxy users may see exit node location
  • ISP-level accuracy is more reliable than city-level

Alternative MyIP Images

Several MyIP implementations exist. Here’s an alternative Dockerfile:

FROM iamwillbar/myip:latest
EXPOSE 8080
ENV PORT=8080

Choose the implementation that best fits your needs regarding features and interface design.

Additional Resources

Conclusion

Deploying MyIP on Klutch.sh gives you a private, always-available IP lookup service without relying on third-party websites. The clean interface provides essential network information without ads or tracking.

Whether you’re verifying VPN connections, troubleshooting network issues, or just need a quick way to check your IP, MyIP on Klutch.sh provides a reliable, self-hosted solution. The lightweight nature of the application means minimal resource usage while maintaining excellent performance.