HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
Snawoot
myip
Makefile2020–2023
Snawoot / myip

myip

Get your external IP address using multiple STUN servers

3Distinct people
6Mentions
0Explicit recommenders
48GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Get your external IP address using multiple STUN servers

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year6 dated mentions

Observed mentions: 2020-06-02 15:11:36 UTC to 2023-07-31 22:32:16 UTC.

01232020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC110
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC303
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101

What Hacker News says

6 sources
This kind of service is exactly what STUN servers are made for. Designed to be used with webrtc, but it works perfectly alright by itself. There are a plethora of unauthenticated STUN servers around, and while there's still room for abuse, the protocol is a bit more lightweight than full-blown http requests, and faster, too! I've dabbled with doing this on my own, but I've found `myip` to do the job nicely and without hassle: https://github.com/Snawoot/myip
In A New Future for Icanhazip
I prefer single packet auth with pyknock [1]. SSH config from client side looks like this: Host vm vm-0 vm-0.com User user HostName vm-0.com ProxyCommand sh -c "pyknock-client -s 0.0.0.0 -S \"\$(myip)\" open %h "$(pass my/pyknock/%h)" && sleep 1 && exec nc -4 %h %p" Port 1792 Where `myip` [2] is an small utility which reliably detects my external IP address. [1] https://github.com/Snawoot/pyknock/ [2] https://github.com/Snawoot/myip
In Tosh: Changing your SSH server's listen address every 30 seconds based on TOTP
I had some auto-tests for VPN app which were relying on similar web-service to check own IP address. One day service become unavailable and autotests got broken. IIRC it was (https://canihazip.com/s) I decided to solve this task in a fast and reliable fashion, so I made a tool which discovers own IP address using major public STUN servers: https://github.com/Snawoot/myip Program issues parallel queries to public STUN servers to determine public IP address and returns result as soon as quorum of matching responses reached. Works fast and reliable, especially compared to services requiring HTTPS: user@dt1:~> time curl https://api.ipify.org 45.152.165.44 real 0m2,515s user 0m0,030s sys 0m0,019s user@dt1:~> time curl ifconfig.co/ 45.152.165.44 real 0m0,131s user 0m0,011s sys 0m0,008s user@dt1:~> time myip
Read the rest
45.152.165.44 real 0m0,084s user 0m0,012s sys 0m0,012s
In Ifconfig.co – Hacker-friendly “What is my IP address”

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.