I need a code to "route" my rdp connections.
I tried to create a simple program that listens on some port, and connects to a remote rdp port (3389 opn some pc),
and just passes the packets from each end to the other.
It works for most tcp connections, and it works if I use clients other than mstsc (such as royal ts), and it works for vnc and pca.
It does not work for mstsc.
I need to understand why, and make a program that does route it.
================================================================
The problem is not that the program doesnt pass the packets right, it does.
Perhaps the mstsc client checks the local ip, I dont know what.
Just for reference, here is the 2 minutes code in python that I used:
import socket
import select
def route(srchost, dsthost):
ls = [login to view URL]()
[login to view URL](srchost)
[login to view URL](20)
ss, inhost = [login to view URL]()
ds = [login to view URL]()
[login to view URL](dsthost)
while True:
rlist, wlist, xlist = [login to view URL]([ss, ds], [], [])
if ss in rlist:
[login to view URL]([login to view URL](1024))
if ds in rlist:
[login to view URL]([login to view URL](1024))
Sincerely,
Shahar Papini
hi i always use bitwise tunelier for this and it works well for any types of port forwarding
let me know if you need any advise on setting up server and client parts