Created
March 8, 2015 14:08
-
-
Save arikon/885838622990f610bbca to your computer and use it in GitHub Desktop.
IPv6 and IPv4 listen test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var server = http | |
.createServer(function(req, res) { | |
console.log(req.method, req.url); | |
res.end('Ok!'); | |
}) | |
.listen(9000, '::', function(err) { | |
err && console.log(err.stack); | |
console.log(server.address()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment