output nanotime correctly
use ipv6 socket for output