gnirehtet | Gnirehtet provides reverse tethering for Android | VPN library
kandi X-RAY | gnirehtet Summary
kandi X-RAY | gnirehtet Summary
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
Top functions reviewed by kandi - BETA
- 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
gnirehtet Key Features
gnirehtet Examples and Code Snippets
Community Discussions
Trending Discussions on gnirehtet
QUESTION
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:20Turns 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.
QUESTION
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:02I 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
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gnirehtet
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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page