So we have this software that we can use a Telnet client to tap into, sending and receiving data in VT220. The software when it initally connects, connects to port 23, and you simple send it an \r command, and which point you are then repointed to a login screen.
That inital connection sits on "localhost:23", however, the second you get to that login screen, you are technically on a differnet address (the LocalEndPoint). Well for my job I want to do something like a Remote Desktop concept. What can happpen is someone is current running this telnet simulator, and I want to be able to view the data they are sending receiving.
I current have a TCPClient that can connect to the "localhost:23" with no problem, but when I try to tap into the user's IP:Port, I get an error like "No connection could be made because the target machine actively refused it". And if I use try to use a TCPListener, and do any sort of AcceptSocket the code just hangs.
Hopefully this makes sense, forgot to each lunch so brain not firing on all cylinder.
To sum it up, I am trying to create a program that can read the VT220 data being transmitted from a telnet simulator that uses a TCPClient (or Socket). Knowing the IP and Port that user is on, I want to be able to tap into the stream of data. Almost like a man in the middle attack you might say (no it's not for malicious sake, it's to allow us to view what people are doing to help them).