【发布时间】:2015-05-16 08:02:07
【问题描述】:
我有 node.js 服务器托管在 IIS 的 vm 服务器上。
我想通过本地计算机 IP 地址和端口使用 asp.net 从我的本地计算机调用此节点服务器 API,但我启用调用此 node.js API。我在我的代码下面发布了:
// below this is my node js sever js api method
app.get("/stream", function (request, response) {
});
// below code for call node.js sever api method from local machine
string url = "http://213.*.*.*:Port/stream";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
【问题讨论】:
-
请提供您收到的错误信息的详细信息。
-
你是在使用这个网址
"http://213.*.*.*:Port/stream"吗? -
我收到此错误“连接尝试失败,因为连接方在一段时间后没有正确响应,或建立连接失败,因为连接的主机未能响应 213.*.*.* :端口“
-
是 jfriend00 这是 VM 服务器 IP 地址和端口。