(C#)TcpClient连接问题
--------------------编程问答--------------------
IPEndPoint ipep = new IPEndPoint(IPAddress.Pars(ConfigurationManager.ConnectionStrings["hostaddress"].ConnectionString), 8800);
client = new TcpClient();
client.Connect(ipep);
NetworkStream networkstream = client.GetStream();
修改后通过监视发现client.Connected属性仍为false --------------------编程问答-------------------- 监听端是你写的吗?
如果监听端监听的是127.0.0.1,那么你可以通过127.0.0.1来连接,但若是监听的是本机的IP(本机的局域网或广域网IP),那你通过127.0.0.1或localhost就连接不上了
补充:.NET技术 , C#