Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add port option to allow multiple instances of the gnirehtet relay to run #210

Closed
wants to merge 2 commits into from

Conversation

jessedusty
Copy link

Related to #179 but I have a use case for running multiple instances.

In my use case, I need to be able to send traffic to different proxies for different phones. I currently run gnirehtet with proxychains to do this. This added -p option lets me run multiple instances of the relay on the same computer.

It was useful for what I'm doing so I thought I'd try to get it upstream to see if it helps anyone else.

I added the option to both the Java and Rust versions to keep the versions consistent. I'm not super familiar with Rust so if there are any conventions I missed, let me know.

@@ -25,7 +25,7 @@

private static final String TAG = Relay.class.getSimpleName();

private static final int DEFAULT_PORT = 31416;
public static final int DEFAULT_PORT = 31416;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just so I can access the default port in the command line argument class

@ars2005tron
Copy link

Hello, enjoyed your program version of the 2.1 ! the program has changed in Android Studio! added activiti with input fields IP and DNS, the Program worked badly, constantly stops. My change works well! IP which I enter the interface on Android as a result of check of WebRTC show the IP necessary to me. Please add a menu to gnirehtet.APK-enter the IP address of the interface to connect and preferably enter DNS! Thanks.

@imonlygitting
Copy link

very useful indeed, is this something that can be done automatically or do we need to find the port of attached device and input at command line? what if the ports change (eg due to plugging into a different usb socket)?

rom1v added a commit that referenced this pull request Nov 13, 2019
Add port option to allow multiple instances of the gnirehtet relay to
run
@rom1v
Copy link
Collaborator

rom1v commented Nov 13, 2019

Thank you, I applied some minor changed and merged the commits into master:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants