喜的朋友,
我想我的路由器192.168.1.1和23端口登录(验证),="admin"和密码="管理员"也和代码中使用的用户名是:
TcpClient tcpclient = new TcpClient();
try
{
tcpclient.Connect("192.168.1.1", 23);
NetworkStream ns = tcpclient.GetStream();
byte[] inStream = new byte[10025];
ns.Read(inStream, 0, (int)tcpclient.ReceiveBufferSize);
string returndata = System.Text.Encoding.ASCII.GetString(inStream);
Console.WriteLine("Data from Server : " + returndata);
//string password = "admin";
byte[] msg = Encoding.ASCII.GetBytes("admin");
ns.Write(msg, 0, msg.Length);
ns.Flush();
}
catch
{
}
1我的路由器是lestening 23端口,
2,我可以登录到我的路由器用浏览器非常好,
请帮我的NegotiateStream使用的TcpClient Asycrous逼近法,