Skip to content

New API: my-ip.io - #73

Merged
sadrasabouri merged 4 commits into
devfrom
myip_io_ipv6
Oct 16, 2025
Merged

New API: my-ip.io#73
sadrasabouri merged 4 commits into
devfrom
myip_io_ipv6

Conversation

@sepandhaghighi

Copy link
Copy Markdown
Member

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Any other comments?

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 18.18182% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.46%. Comparing base (2b02d9a) to head (30e2d5d).

Files with missing lines Patch % Lines
ipspot/ipv6.py 10.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #73      +/-   ##
==========================================
- Coverage   81.31%   79.46%   -1.86%     
==========================================
  Files           4        4              
  Lines         364      375      +11     
  Branches       39       40       +1     
==========================================
+ Hits          296      298       +2     
- Misses         51       60       +9     
  Partials       17       17              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sepandhaghighi
sepandhaghighi marked this pull request as ready for review October 14, 2025 15:20
@sadrasabouri

Copy link
Copy Markdown
Member

I'm testing this on a system with ipv6 access and getting time "Max retries" (I only ran it once on this network):

(.venv) ➜  ipspot git:(myip_io_ipv6) ipspot --ipv6-api my-ip.io
Private IP:

  IPv4: 192.168.1.135

  IPv6: fe80::4059:9213:ed33:d465

Public IP and Location Info:

  IPv4:

    API: ident.me
    City: Los Angeles
    Country: United States
    Country Code: US
    IP: 68.181.17.223
    Latitude: 34.0522
    Longitude: -118.244
    Organization: University of Southern California
    Region: N/A
    Timezone: America/Los_Angeles

  IPv6:

    Error: HTTPSConnectionPool(host='api6.my-ip.io', port=443): Max retries exceeded with url: /v2/ip.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x103b400a0>: Failed to establish a new connection: [Errno 0] Error'))

Is this going to be a problem?

Comment thread ipspot/ipv6.py
:param timeout: timeout value for API
"""
try:
data = _get_json_standard(url="https://api6.my-ip.io/v2/ip.json", timeout=timeout)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I'm getting "DNS_PROBE_FINISHED_NXDOMAIN" when opening this link in my browser.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this issue is related to your network. I tested it, and it worked perfectly!

@sadrasabouri sadrasabouri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it now it works good.

@sadrasabouri
sadrasabouri merged commit 594f122 into dev Oct 16, 2025
22 checks passed
@sadrasabouri
sadrasabouri deleted the myip_io_ipv6 branch October 16, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants