LAN connection over VPN and proxy

Options
backsy
backsy Posts: 1
edited May 2023 in General questions

Hi, i have a bit of a complex network. I have another computer on LAN over VPN and the ports are forwarded through a different IP. Is there a way to tell teamviewer to connect to ports that are configured to be forwarded to different ports on the other computer.

Im at ip 192.168.20.20 and the device im connecting to is ip 192.168.20.21 but the ports for access go through 192.168.21.243 and they are not maped to the ones teamviewer uses. The receiving computer would use the teamviewer ports 443, 80 and the main port but the middle man takes input from ports 40443,40080 and 40k+ the main port. Can i tell teamviewer to use those ports instead of default ones?

Would teamviewer even work if i tell it to connect to 192.168.21.243 but expect to be connected to 192.168.20.21?

(the IP's are examples but the idea is the same)

Edit: I had the proxy ports reconfigured so that it would forward 5938 but it wont connect. Assuming its the fact that i have to use the proxy ip and that does not match with the destination. Is there a way to make it work?