SimpleRT | Simple Reverse Tethering utility for Android | Android library
kandi X-RAY | SimpleRT Summary
kandi X-RAY | SimpleRT Summary
Reverse Tethering utility for Android. Allows you to share your computer's internet connection with your Android device via a USB cable. Development is still in progress, bugs and errors can occur.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SimpleRT
SimpleRT Key Features
SimpleRT Examples and Code Snippets
Community Discussions
Trending Discussions on SimpleRT
QUESTION
The SOCKS5 protocol, described by RFC1928 provides support for UDP.
To summarize, a client wishing to relay UDP packets through a SOCKS5 server must, at least:
- open a TCP connection to the SOCKS5 server;
- send a
UDP ASSOCIATE
request (cf section 4); - receive from the server the address and port where it must send UDP packets to be relayed;
- send datagrams (UDP) to that address, encapsulated with some headers (cf section 7).
Here are some relevant quotations, from section 6:
A UDP association terminates when the TCP connection that the UDP ASSOCIATE request arrived on terminates.
In the reply to a UDP ASSOCIATE request, the BND.PORT and BND.ADDR fields indicate the port number/address where the client MUST send UDP request messages to be relayed.
and section 7:
A UDP-based client MUST send its datagrams to the UDP relay server at the UDP port indicated by BND.PORT in the reply to the UDP ASSOCIATE request.
Why so much complexity? Why not just sending UDP packets in the pre-existing TCP connection?
EDIT: To clarify, I am expecting the SOCKS proxy to receive UDP packets over a TCP stream and then transmit them to the target using actual UDP. And then receive UDP packets from the target and send them back down the TCP stream.
Here is some context.
My goal is to implement reverse tethering, so that an Android device may use the internet connection of the computer it is plugged on, without requiring root access both on the device and the computer (SimpleRT works but requires root access on the computer).
My first idea was to start a simple SOCKS5 server with ssh -D
on the computer, so that I only needed to implement the client. The packets would be transmitted from the device to the computer over adb
, thanks to remote port forwarding provided by adb reverse
…
Unfortunately, OpenSSH SOCKS server does not support UDP. But it was just a limitation from the implementation, I could have used another SOCKS server instead.
However, adb reverse
does not support UDP forwarding either.
Hence my question about SOCKS5 protocol.
I am currently writing a PoC implementing my own (simple) protocol over TCP, which is able to relay UDP packets, but I am disappointed not to be able to use a standard protocol (and benefit from existing implementations).
...ANSWER
Answered 2017-Mar-30 at 16:46I am answering to my own question: it's probably to avoid TCP mechanisms (packet retransmission, head-of-line blocking…).
For a local reverse tethering tool, it is not a problem though, so I implemented UDP over TCP without using SOCKS.
QUESTION
Where can I put a global method that dispatches a Vuex action? I created a Vuex module "simplert" that has some functions to show simplert. I have created an HTML file where I put my single simplert
...ANSWER
Answered 2018-Aug-25 at 13:01I think that I found the right method to manage this scenario. I removed the store module's "simplert" and I copied its functionalities inside a mixin. So I created inside mixin's folder a simplert.js file, where I put all my logic to manage simplert alerts. Then in my components I imported the mixin when I need it. In this way I semplified the manage of simplert and I use it only in the components where need it
QUESTION
We are using https://github.com/mazipan/vue2-simplert-plugin
In our Main.js
...ANSWER
Answered 2018-Feb-01 at 23:44Seems the plugin already uses an event bus for triggering the open / close events so you should be able to tap in to that via the plugin instance registered into Vue
In your store, try
QUESTION
I would like to use this library for alerts in my app built with Laravel 5.2 version. I have installed it and created a component like this:
...ANSWER
Answered 2018-Jan-09 at 17:55Just found out that simplert also exists as Vue plugin. That should simplify the complete process and it is much better implemented as it uses an event bus for opening/closing and it doesn't use any longer $refs
which should be avoided according to the official Vue docs.
You would do then for example in your app.js:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SimpleRT
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