我无法理解错误,
Server running at 204.232.212.213 on port 8124
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: listen EADDRNOTAVAIL
at errnoException (net.js:646:11)
at Array.0 (net.js:732:28)
at EventEmitter._tickCallback (node.js:192:41)
the code is as follows:
var http = require('http');
http.createServer(function (req, res){
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8124, "204.232.212.213");
console.log('Server running at 204.232.212.213 on port 8124')
请帮助我使用以下内容,javascript和node.js
的新功能答案 0 :(得分:0)
使用本地地址0.0.0.0和端口8000
解决