Connect to network equipment
-
Hi guys, I have search the web for how I can make some C# code, that connect to some network equipment (such as a switch). I have read about sockets and TcpClient. Normally I connect my network switches through Telnet (TCP port 23), and sending the switch telnet commands there. I want my own C# app to make this command call to a given switch, with a single click from the user on a buttom. How can I make a connection to a network switch with C# code? there is username and password for security on the switches, so I have to pass them too somehow in the connection session... Any suggestions? Sockets or tcpClient?
-
Hi guys, I have search the web for how I can make some C# code, that connect to some network equipment (such as a switch). I have read about sockets and TcpClient. Normally I connect my network switches through Telnet (TCP port 23), and sending the switch telnet commands there. I want my own C# app to make this command call to a given switch, with a single click from the user on a buttom. How can I make a connection to a network switch with C# code? there is username and password for security on the switches, so I have to pass them too somehow in the connection session... Any suggestions? Sockets or tcpClient?
-
That example is with TcpClient, it may work too. But I actually managed to get a simpel 'ena swi po=x' telnet command working through Socket connection to the switch. I don't know is there is any of them that are pref from another?