Search code examples
c#telnet

Telnet Connectionstate Query


I would like to know if there is any way we can see programatically if a telnet connection has been established.

We use a telnet to authenticate against a firewall inside our domain, after we authenticated we can access the hosts behind the firewall. Is their any way in C# how to query this connection state without using third party libraries?

Thanks in advance,

Kevin

UPDATE: These firewalls also have a url login webpage, currently we query those to see if we are connected but this process is far from consistent.

  1. only 75% of our firewalls can be tested like this
  2. this process relates on a timeout which makes the application hang

    -> C# - Testing Internet page - Waiting for timeout


Solution

  • C# - Socket to log on to Firewall

    --> This fixed the issue on a more speedy and elegant way.

    -KL-