Listen to a different IP address
I think the "unlisten" function you're looking for is called "close": http://nodejs.org/api/http.html#http_server_close_callback
you have to use server.close() not app.close()..
var express = require('express')
, http = require('http')
, app = express()
, server = http.createServer(app)
app.get('/',function(req,res){
...
})
server.listen(8000,'127.0.0.1',function(){
server.close(function(){
server.listen(8001,'192.168.0.202')
})
})
should work