Listen to a different IP address

前端 未结 4 1049
自闭症患者
自闭症患者 2020-12-10 02:34

This is my code:

var server = express();

// Create the HTTP server
http
    .createServer(server)
    .listen(80, \'10.10.10.10\');

Once t

4条回答
  •  春和景丽
    2020-12-10 02:47

    I think the "unlisten" function you're looking for is called "close": http://nodejs.org/api/http.html#http_server_close_callback

提交回复
热议问题