5.4 C
New York
Friday, November 29, 2024

distant – Recommendation on the method for bidirectional port forwarding


I’ve the next setup:
Machine D linked to Pc B with Ethernet cable

I must remotely talk with Machine D from my Pc A via Pc B
The communication occurs solely on 2 ports, one for UDP and one for TCP

Pc B isn’t in my management and I am unable to change system community settings there, however I can ask to run some code/program with out admin rights

I examined the setup when Pc B is inside my native community (similar wifi) and firewall disabled. Then I run a python script on B to listed to ports U for UDP and T for TCP, ahead all of the packets to Machine D after which watch for response and ship response again from B to A

Local testing setup

Query 1: Does my testing setup make sense?

Query 2: For actual world situation, when B isn’t on my native community and has firewall enabled, what could possibly be the method to setup communication A <-> B <-> D? I although about relay server which accepts connections after which I may switch all the information via it. It will require to run a program on B that connects to relay server R, then R waits for the information coming from A to ahead it to B, then B ahead acquired information to D and ship response again to R which in flip ship it again to A
So it seems to be like A <-> R <-> B <-> D
The thought is that it does not require any community settings adjustments on B as the appliance we run on B connects to R.
Is there higher/simpler method to setup this? Or possibly some present normal software program?
Relay server setup

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles