I am pretty new to this Networking stuff in .net.
I need to establish a TCP channel between 2 machines and their ports.
Machine A is vncclient, Machine B acts as Routing Server, Machine C is vncserver.
1.Machine A Sends the requests to MachineB 5900 port
2.Need to establish a channel which gets the data from MachineB 5900 and fwd the data to Machine C 5900 and viceversa.
3.This program needs to be run on Machine C Server.
private void Connectandtransfer(IPAddress1, port1,IpAddress2, port2)
{
}
In this case how can i avoid the self looping of data?
I am confused on how to achieve this as Sockets,TCpChannel, Remoting, TCP Hole punching, Port forwarding look much similar.. But none of them satisfied my requirement.
Please guide me on how to achieve this.