Genymobile/gnirehtet — 7.8k★ trên GitHub (Java). Gnirehtet provides reverse tethering for Android
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This project provides reverse tethering over adb for Android: it
allows devices to use the internet connection of the computer they are plugged
on. It does not require any root access (neither on the device nor on the
computer). It works on GNU/Linux, Windows and Mac OS.
Currently, it relays TCP and UDP over IPv4 traffic, but it does not
support IPv6 (yet?).
This project is not actively maintained anymore, only major blockers (like
build issues) are fixed. It should still work, though.
Flavors
Two implementations of Gnirehtet are available:
one in Java;
one in Rust.
Which one to choose?
Use the Rust implementation. The native binary consumes less CPU and memory,
and does not require a Java runtime environment.
The relay server of Gnirehtet was initially only implemented in Java. As a
benefit, the same "binary" runs on every platform having Java 8 runtime
installed. It is still maintained to provide a working alternative in case of
problems with the Rust version.
Requirements
The Android application requires at least API 21 (Android 5.0).
For the Java version only, Java 8 (JRE) is required on your computer. On
Debian-based distros, install the package openjdk-8-jre.
adb
You need a recent version of adb (where adb reverse is implemented, it
works with 1.0.36).
It is available in the Android SDK platform tools.
On Debian-based distros, you can alternatively install the package
android-tools-adb.
On Windows, if you need adb only for this application, just download the
platform-tools and extract the following files to the
gnirehtet directory:
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll
Make sure you enabled adb debugging on your device(s).
Get the app
Homebrew
If you use Homebrew, getting up and running is very quick.
To install the Rust version:
brew install gnirehtet
Download
Download the latest release in the flavor you want.
All platforms:gnirehtet-java-v2.5.1.zip
(SHA-256: 816748078fa6a304600a294a13338a06ac778bcc0e57b62d88328c7968ad2d3a)
Then extract it. The archive contains:
gnirehtet.apk
gnirehtet.jar
gnirehtet
gnirehtet.cmd
gnirehtet-run.cmd
Run (simple)
Note: On Windows, replace ./gnirehtet by gnirehtet in the following
commands.
The application has no UI, and is intended to be controlled from the computer
only.
If you want to activate reverse tethering for exactly one device, just execute:
./gnirehtet run
Reverse tethering remains active until you press Ctrl+C.
On Windows, for convenience, you can double-click on gnirehtet-run.cmd
instead (it just executes gnirehtet run, without requiring to open a
terminal).
The very first start should open a popup to request permission:
A "key" logo appears in the status bar whenever Gnirehtet is active:
Alternatively, you can enable reverse tethering for all connected devices
(present and future) by calling:
./gnirehtet autorun
Run
You can execute the actions separately (it may be useful if you want to reverse
tether several devices simultaneously).
Start the relay server and keep it open:
./gnirehtet relay
Install the apk on your Android device:
./gnirehtet install [serial]
In another terminal, for each client, execute:
./gnirehtet start [serial]
To stop a client:
./gnirehtet stop [serial]
To reset the tunnel (useful to get the connection back when a device is
unplugged and plugged back while gnirehtet is active):
./gnirehtet tunnel [serial]
The serial parameter is required only if adb devices outputs more than one
device.
For advanced options, call ./gnirehtet without arguments to get more details.
Run manually
The gnirehtet program exposes a simple command-line interface that executes
lower-level commands. You can call them manually instead.
To start the relay server:
./gnirehtet relay
To install the apk:
adb install -r gnirehtet.apk
To start a client:
adb reverse localabstract:gnirehtet tcp:31416
adb shell am start -a com.genymobile.gnirehtet.START \
-n com.genymobile.gnirehtet/.GnirehtetActivity
To stop a client:
adb shell am start -a com.genymobile.gnirehtet.STOP \
-n com.genymobile.gnirehtet/.GnirehtetActivity
Environment variables
ADB defines a custom path to the adb executable:
ADB=/path/to/my/adb ./gnirehtet run
GNIREHTET_APK defines a custom path to gnirehtet.apk:
GNIREHTET_APK=/usr/share/gnirehtet/gnirehtet.apk ./gnirehtet run
Why gnirehtet?
rev <<< tethering
(in Bash)
Developers
Read the developers page.
Licence
Copyright (C) 2017 Genymobile
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Articles
Introducing “gnirehtet”, a reverse tethering tool for Android (French version)
Gnirehtet 2: our reverse tethering tool for Android now available in Rust
Genymobile/gnirehtet có 7.8k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Genymobile/gnirehtet. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Genymobile/gnirehtet có những chủ đề gì?
GitHub topics của Genymobile/gnirehtet: "android", "java-8", "reverse-tethering", "rust", "vpn". TopGit xếp repo vào nhóm Mobile.
Genymobile/gnirehtet còn đang phát triển không?
Commit gần nhất trên Genymobile/gnirehtet là 2.0 năm trước (theo timestamp GitHub). Repo có 727 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Genymobile/gnirehtet là gì?
Genymobile/gnirehtet (Genymobile/gnirehtet) là dự án Java trên GitHub. Theo mô tả gốc: Gnirehtet provides reverse tethering for Android
Genymobile/gnirehtet so với các dự án Mobile khác thế nào?
Genymobile/gnirehtet được TopGit xếp vào nhóm Mobile, với 7.8k sao GitHub và viết bằng Java. Xem trang chủ đề Mobile trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Genymobile/gnirehtet viết bằng ngôn ngữ gì?
Genymobile/gnirehtet chủ yếu viết bằng Java. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Vì sao Genymobile/gnirehtet được xếp vào nhóm Mobile?
TopGit xếp Genymobile/gnirehtet vào nhóm Mobile dựa trên GitHub topics và mô tả của repo (gắn thẻ: "android", "java-8", "reverse-tethering"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc gnirehtet có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về gnirehtet.