Skip to content
プロジェクト

n0a/telegram-get-remote-ip

GitHubで見る

n0a/telegram-get-remote-ip has 1,849 GitHub stars and 220 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and -1 in 15 days. Last checked 2026-11-23 17:13 UTC. Last push 2023-10-21.

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
-1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

概要

Telegramの音声通話相手側のIPアドレスを取得します。

制作・メディア

Telegram get remote IP

New 2023 version written in python, against bash.

This script is intended to be used to determine the IP address of the interlocutor in the telegram messenger. You must have tshark installed to use it.

Working on MacOS, Linux and Windows.

Thx @WonderMr for adding Windows support and other improovements.

TechCrunch wrote about the utility — Telegram is still leaking user IP addresses to contacts

Attention! To determine the IP address, you must be in each other's contacts.

Get caller IP

How to use?

  1. Install Telegram desktop client on Linux or Mac.
  2. Install tshark (sudo apt install tshark or download for macOS here, it's comes with wireshark).
  3. Run script, call and wait for an answer.
  4. Profit! You have received the IP address of the interlocutor.

Get & Run (Ubuntu 20 example)

$ sudo apt update
$ sudo apt install -y python3-pip python3-venv tshark
$ git clone https://github.com/n0a/telegram-get-remote-ip
$ cd telegram-get-remote-ip
$ python3 -m venv venv
$ source ./venv/bin/activate
$ sudo pip3 install -r requirements.txt
$ sudo python3 tg_get_ip.py

Or specify the interface immediately at startup:

$ sudo python3 -i en0 tg_get_ip.py

PS. Possible work with termux on android smartphones. Root authority is required to capture traffic.

Docker

Alternatively to the previous Ubuntu + pyenv way of running it, a Dockerfile is provided, just build it with:

$ docker build ./ -t telegram-get-remote-ip

And run it with:

$ docker run -it --cap-add=NET_RAW --cap-add=NET_ADMIN telegram-get-remote-ip

Для русскоязыных пользователей

Более подробно об утилите можно почитать у меня в блоге: https://n0a.pw/telegram-get-remote-ip/

関連プロジェクトを探す

読み込み中…