with ipv6?


I have my code like below:

var gzippo = require('gzippo');

var app = require('express').createServer()
, io = require('').listen(app);

io.enable('browser client gzip');
io.set('transports', [

app.use(gzippo.staticGzip(__dirname + '/'));


app.get('/', function (req, res) {
res.sendfile(__dirname + '/main2.html');

io.sockets.on('connection', function (socket) {...});

I use gzippo for gzip, express for http server, for websocket function.

The code beyond now work properly with requests from a ipv4 address.

So how to listen a request from my ipv6 address?

Problem courtesy of: liuyanghejerry


It appears that fails to connect as it is unable to parse ipv6 url, cf

Solution courtesy of: First Zero

View additional discussion.