gnirehtet | Gnirehtet provides reverse tethering for Android | VPN library

 by   Genymobile Java Version: v2.5 License: Apache-2.0

kandi X-RAY | gnirehtet Summary

kandi X-RAY | gnirehtet Summary

gnirehtet is a Java library typically used in Telecommunications, Media, Telecom, Networking, VPN applications. gnirehtet has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub.

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?).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              gnirehtet has a medium active ecosystem.
              It has 5189 star(s) with 507 fork(s). There are 117 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 232 open issues and 232 have been closed. On average issues are closed in 63 days. There are 11 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of gnirehtet is v2.5

            kandi-Quality Quality

              gnirehtet has 0 bugs and 0 code smells.

            kandi-Security Security

              gnirehtet has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              gnirehtet code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              gnirehtet is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              gnirehtet releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              gnirehtet saves you 2111 person hours of effort in developing the same functionality from scratch.
              It has 4630 lines of code, 485 functions and 63 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed gnirehtet and discovered the below as its top functions. This is intended to give you an instant insight into gnirehtet implemented functionality, and help decide if they suit your requirements.
            • Executes the command
            • Parse the parameters from the given arguments
            • Print command usage
            • Appends the usage for a command
            • Processes a receive packet from the network
            • Send an end packet
            • Consumes a Packet
            • Consume a packet
            • Returns the current tunnel
            • Executes auto - start commands
            • Start the authentication process
            • Runs the command
            • Computes the checksum for an IPv4 packet
            • Create a 4 byte buffer
            • Copy the contents of this IPv4Header into the target buffer
            • Creates the transport header
            • Handles send request
            • Process the send message
            • Handles the start request
            • Create a socket channel
            • Called when a connect is received
            • Send packet
            • This method generates a hashCode of the protocol
            • Creates a new datagram channel
            • Accepts a client
            • Send next packet
            Get all kandi verified functions for this library.

            gnirehtet Key Features

            No Key Features are available at this moment for gnirehtet.

            gnirehtet Examples and Code Snippets

            No Code Snippets are available at this moment for gnirehtet.

            Community Discussions

            QUESTION

            How to use SpaceDesk over a Wired Connection?
            Asked 2019-Apr-04 at 18:41

            I have a Samsung Galaxy Tab A 10.1" that I want to use as a second monitor with my PC. Spacedesk works great for my needs so long as I'm on a network with lots of bandwidth -- but more frequently I want to use second-monitor functionality in other environments, e.g. at a coffee shop, where the number of users bogs down network traffic and makes Spacedesk unacceptably slow.

            Spacedesk doesn't natively support a wired connection, but for those who want one they suggest using USB tethering, presumably so both devices are on the same network. Problem is, my tablet is the Wifi-only version, so USB tethering isn't enabled. I rooted the device and used adb to run the commands enabling USB tethering as an option. It didn't take - the option never appeared under Settings / Connections. Then I installed ClockworkMod Tether as a 3rd party usb tether app. The PC tether software said it connected successfully to the tablet, but Spacedesk couldn't connect. Next I tried "gnirehtet", a reverse-tethering app. Got it working fine, but again Spacedesk on the tablet couldn't find the Spacedesk server on the PC.

            How can I get both devices to be on the same network, without an intermediate connection (e.g. a router), in a way that preserves my PC's ability to connect to wifi, and that will allow Spacedesk to connect?

            ...

            ANSWER

            Answered 2018-Feb-14 at 05:20

            Turns out there's this thing called "Mobile Hotspot". Of course I couldn't use this on my tablet, as it had been disabled (thanks Samsung). But you can set it up on Windows easily -- in Windows 10 it's under Settings / Network & Internet / Mobile Hotspot. Connect your tablet to that hotspot and Spacedesk works like a charm.

            Huge thanks to SpaceDesk customer support, who were extremely helpful in troubleshooting this apparently rather unusual situation. 5 stars both for the product, which I can now use anywhere, and the customer service.

            Source https://stackoverflow.com/questions/48729541

            QUESTION

            apache commons net with reverse tethering
            Asked 2018-Mar-01 at 12:02

            I am trying to write android app which sends photos to FTP server. I use Appache-commons-net library to do so. When device uses Wi-Fi everything is fine, photos are uploaded to FTP server. But my customer wants this app to be able to do the same when Wi-Fi in app is turned off and device gets net from personal computer(Windows) connected to the device via USB cable. I was able to connect device using "gnirehtet":

            https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7

            When I use gnirehtet my app uploads only firsth photo to FTP server and hangs on getting reply code at the end of "_storeFile" function in FTPClient class of AppacheCommonsNet. When I use WiFi everything is ok, the problem is only when I use reverse tethering. I checked other reverse thetering solutions and I met the same problem.

            Does anybody knows why it happens? Or what I have to do to make it work?

            ...

            ANSWER

            Answered 2018-Mar-01 at 12:02

            I have contacted with gnirehtet library author, he made a fix yesterday. Everything now workas as should, all files are copied via USB connection using ApacheCommonsNet library.

            Fix is aviable on dev branch: https://github.com/Genymobile/gnirehtet/tree/dev

            Source https://stackoverflow.com/questions/48797608

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gnirehtet

            Download the latest release in the flavor you want.
            Linux: gnirehtet-rust-linux64-v2.5.zip (SHA-256: 2b1ce04540e8de5df5ddbebb64bb01e27c13d556b3a04a8563dcce3786765705)
            Windows: gnirehtet-rust-win64-v2.5.zip (SHA-256: 9f6d7700368f45d2fa43923324660eca9f879e837e10fc45d8d975273eae4755)
            MacOS: gnirehtet-rust-macos64-v2.2.1.zip (old release) (SHA-256: 902103e6497f995e1e9b92421be212559950cca4a8b557e1f0403769aee06fc8)
            gnirehtet.apk
            gnirehtet
            gnirehtet.apk
            gnirehtet.exe
            gnirehtet-run.cmd
            All platforms: gnirehtet-java-v2.5.zip (SHA-256: c65fc1a35e6b169ab6aa45e695c043e933f6fd650363aea7c2add0ecb0db27ca)
            gnirehtet.apk
            gnirehtet.jar
            gnirehtet
            gnirehtet.cmd
            gnirehtet-run.cmd

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular VPN Libraries

            algo

            by trailofbits

            streisand

            by StreisandEffect

            brook

            by txthinking

            Try Top Libraries by Genymobile

            scrcpy

            by GenymobileC

            mirror

            by GenymobileJava

            genymotion-gradle-plugin

            by GenymobileGroovy

            genymotion-kernel

            by GenymobileC

            copydeps

            by GenymobilePython