kitura

How to make IBM Kitura Framework listen on IPv6 port?


I made a web application using IBM Kitura Framework, but the service only listens on IPv4? How to make it listen on both IPv4 and IPv6?

The source code which adds a HTTP server is as follow

Kitura.addHTTPServer(onPort: 8090, with: router)

And I run lsof -i:8090 on my Ubuntu Server, the result is

COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
ServerNew 1731 root    4u  IPv4  24114      0t0  TCP *:8090 (LISTEN)

It shows that the 8090 port only listens on IPv4.


Solution

  • I'm the Business Development Manager for Kitura in IBM. Kitura 2 doesn't yet support IPv6. It's supported in Bluesocket and the underlying frameworks, but has not yet been implemented in the socket.create() api. This is in the backlog and will be coming in the not too distant future.