PanagiotisDrakatos/T0rlib4j

Client-Server instance on same machine support?

Opened this issue · 1 comments

T0rlib4j is awesome and works as expected.
I am making a front end for a Tor Chatting Program that requires running both server and client at once on the same machine.

Since this feature is not supported as of now, can you give an estimate on when this patch will be released?
Or maybe suggest some kind of sandboxing of the processes. (I tried running separate thread of client and server but it rarely works).

@zxcv32 sorry for the delay and thank you for your kind words. Unfortunately, this option is not possible because if tor configuration uses the same ports both for the client and the server, this would lead to potential failures. In addition, it will be pointless to route traffic in the same machine . For that reason, you can set up a virtual machine and select Use network address translation(ΝΑΤ)(The VMware NAT device passes network data between one or more virtual machines and the external network. It identifies incoming data packets intended for each virtual machine and sends them to the correct destination), or you can use two different machines on the same network to make you test. Nevertheless, i think it will be a way to change the ports and it might work but it needs to dig further.